Article 5E9KK use sed to find matching text in a file then output to a file

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)latest?d=yIl2AUoC8zA latest?i=NeXaUy7Vmho:Ppo2o6FGgNM:F7zBnMy latest?i=NeXaUy7Vmho:Ppo2o6FGgNM:V_sGLiP latest?d=qj6IDK7rITs latest?i=NeXaUy7Vmho:Ppo2o6FGgNM:gIN9vFwNeXaUy7Vmho
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments