Article 5ED3T use sed to find matching text on left part of a line with " - " as the separator

use sed to find matching text on left part of a line with " - " as the separator

by
Gebby_3
from LinuxQuestions.org on (#5ED3T)
: Need to search on left side of " - " in the line only
: file string setup to search criteria:
%groupbyname = "groupname - groupsongtitle"

The double quotes allow for a comma to be included in the search

sed -n "/%groupbyname/p" input_file > output_file

I'm using mks and/or Cgywin in Windows 10

Searching my cobwebs from running Xenix in the '80's!latest?d=yIl2AUoC8zA latest?i=ijuhXBrV7Tg:d2gs28o8Orw:F7zBnMy latest?i=ijuhXBrV7Tg:d2gs28o8Orw:V_sGLiP latest?d=qj6IDK7rITs latest?i=ijuhXBrV7Tg:d2gs28o8Orw:gIN9vFwijuhXBrV7Tg
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