use sed to find matching text in a file then output to a file
by Gebby_3 from LinuxQuestions.org on (#5E9KK)
This is my sed scripting so far:
sed -e 's/.*\\//' -e 's/....$//' !geb3raw.lst > !geb3sed.lst
The 1st -e strips all and up to the last \ in the line.
The 2nd -e strips the last 4 char's from the line (which is .mp3)
I'd like to pull info from the !geb3sed.lst and put it into another file with only the 'text' that is found.
I also believe I can replace the -e with a ;
I am using cgywin, windows 10, mks toolkit running tcc shell by (j.p.software)


sed -e 's/.*\\//' -e 's/....$//' !geb3raw.lst > !geb3sed.lst
The 1st -e strips all and up to the last \ in the line.
The 2nd -e strips the last 4 char's from the line (which is .mp3)
I'd like to pull info from the !geb3sed.lst and put it into another file with only the 'text' that is found.
I also believe I can replace the -e with a ;
I am using cgywin, windows 10, mks toolkit running tcc shell by (j.p.software)