data manipulation of text file through shell script [on hold]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-5
down vote

favorite












i have a file like that below.
enter image description here



So my o/p file SHOULD be in 2 files .
1) 1st file should contains each and every header files with a unique key attached with it .
like A header files(there is a space between unique key and header file)
B header files
C header files etc
2) 2nd file should contains all records prefixed with the corresponding unique key of the respected header files .
Likes A data
A data
A data
B data
B data
C data
C data etc(space between unique key and data)
I will show the images of the O/P files .enter image description here
For this write the shell script.PLEASE .I am unable to do it after try my best .Please do it .



enter image description here










share|improve this question









New contributor




Prakash Rout is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by Kusalananda, Jeff Schaller, DopeGhoti, thrig, glenn jackman 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 2




    unix.meta.stackexchange.com/q/4086/117549 please don't paste text as images
    – Jeff Schaller
    2 days ago










  • Prakash, your question is going to be put on hold. Please read unix.stackexchange.com/help/closed-questions and then edit your question to add the actual text.
    – glenn jackman
    2 days ago














up vote
-5
down vote

favorite












i have a file like that below.
enter image description here



So my o/p file SHOULD be in 2 files .
1) 1st file should contains each and every header files with a unique key attached with it .
like A header files(there is a space between unique key and header file)
B header files
C header files etc
2) 2nd file should contains all records prefixed with the corresponding unique key of the respected header files .
Likes A data
A data
A data
B data
B data
C data
C data etc(space between unique key and data)
I will show the images of the O/P files .enter image description here
For this write the shell script.PLEASE .I am unable to do it after try my best .Please do it .



enter image description here










share|improve this question









New contributor




Prakash Rout is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by Kusalananda, Jeff Schaller, DopeGhoti, thrig, glenn jackman 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 2




    unix.meta.stackexchange.com/q/4086/117549 please don't paste text as images
    – Jeff Schaller
    2 days ago










  • Prakash, your question is going to be put on hold. Please read unix.stackexchange.com/help/closed-questions and then edit your question to add the actual text.
    – glenn jackman
    2 days ago












up vote
-5
down vote

favorite









up vote
-5
down vote

favorite











i have a file like that below.
enter image description here



So my o/p file SHOULD be in 2 files .
1) 1st file should contains each and every header files with a unique key attached with it .
like A header files(there is a space between unique key and header file)
B header files
C header files etc
2) 2nd file should contains all records prefixed with the corresponding unique key of the respected header files .
Likes A data
A data
A data
B data
B data
C data
C data etc(space between unique key and data)
I will show the images of the O/P files .enter image description here
For this write the shell script.PLEASE .I am unable to do it after try my best .Please do it .



enter image description here










share|improve this question









New contributor




Prakash Rout is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











i have a file like that below.
enter image description here



So my o/p file SHOULD be in 2 files .
1) 1st file should contains each and every header files with a unique key attached with it .
like A header files(there is a space between unique key and header file)
B header files
C header files etc
2) 2nd file should contains all records prefixed with the corresponding unique key of the respected header files .
Likes A data
A data
A data
B data
B data
C data
C data etc(space between unique key and data)
I will show the images of the O/P files .enter image description here
For this write the shell script.PLEASE .I am unable to do it after try my best .Please do it .



enter image description here







shell scripting






share|improve this question









New contributor




Prakash Rout is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Prakash Rout is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday





















New contributor




Prakash Rout is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









Prakash Rout

12




12




New contributor




Prakash Rout is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Prakash Rout is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Prakash Rout is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as unclear what you're asking by Kusalananda, Jeff Schaller, DopeGhoti, thrig, glenn jackman 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






put on hold as unclear what you're asking by Kusalananda, Jeff Schaller, DopeGhoti, thrig, glenn jackman 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









  • 2




    unix.meta.stackexchange.com/q/4086/117549 please don't paste text as images
    – Jeff Schaller
    2 days ago










  • Prakash, your question is going to be put on hold. Please read unix.stackexchange.com/help/closed-questions and then edit your question to add the actual text.
    – glenn jackman
    2 days ago












  • 2




    unix.meta.stackexchange.com/q/4086/117549 please don't paste text as images
    – Jeff Schaller
    2 days ago










  • Prakash, your question is going to be put on hold. Please read unix.stackexchange.com/help/closed-questions and then edit your question to add the actual text.
    – glenn jackman
    2 days ago







2




2




unix.meta.stackexchange.com/q/4086/117549 please don't paste text as images
– Jeff Schaller
2 days ago




unix.meta.stackexchange.com/q/4086/117549 please don't paste text as images
– Jeff Schaller
2 days ago












Prakash, your question is going to be put on hold. Please read unix.stackexchange.com/help/closed-questions and then edit your question to add the actual text.
– glenn jackman
2 days ago




Prakash, your question is going to be put on hold. Please read unix.stackexchange.com/help/closed-questions and then edit your question to add the actual text.
– glenn jackman
2 days ago















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?