Need help with trying to format some ouptut deploying "sed" to remove everything in a line after a certain string is found.
What I've got that works is:
cd /misc/export/home/sgordon
sed -e "s/\/view\/past_view\///g" postfile > sedfile
The output is successful, but I want it to
remove the rest of the line as well.
Here's my output so far. (A parial output)
ac/Version-1.5/Docs/Integration/External API - 3 Tier URL Syntax.doc and vobs/ac/Version-1.5/Docs/Integration/External API - 3 Tier URL Syntax.doc differ
I want to remove everything AFTER the "and".
How do I do this?
Thanks,
Susan Gordon