I have a huge text file called helo.lst in which every line starts with the format:
#=GS N4TFW2_FUSC1/96-161 AC N4TFW21
I'm only interested in the
N4TFW2_FUSC1 part. I need to extract this part from the rest of the text and apply the same for the whole text file.
I found out that the following script works but I couldn't get how.
cat helo.lst | sed 's/^#=GS\s\([A-Z0-9_]*\)\/.*/\1/1' > helo_id.lst
Can someone explain what's going on after
AFAIK, for example
sed 's/Mark/Euro/g' de_currency.txtchanges every occurrences of
Euro in the
de_currency.txt file. But in my example the script looks more complicated than this.