I am trying to perform a common task, searching data from within a file and placing what is found into another.However, I have not been able to figure the �How to� with this situation.
I need to search through all lines within this text and pull the first positional attributes and their formats
For example, I have this line in the file:
LOGS MEAS FROM=(TABLE=INFO,FORMAT=A25,DESCRIPTION=Point from which logs are measured,ABBREV=LMF,STORAGE FORMAT=F10.3,MIRROR=YES)
I need to pick from this line the following and output to another file:
LOGS MEAS FROM FORMAT=A25 FORMAT=F10.3
Because this is a very large file, I am also asking for your help to make this an efficient command.