I am a newbee.
I want to filter out text from lines in a file. Shold I use sed or grep? How do you do this? Here is the file:
table.tbl-arc(table.tbl)
period.tbl-arc(period.tbl)
On each line, I want to filter out everytning from the - to the end of the line so that my output is:
table.tbl...
I have an input text file that looks like:
\\awpvcp01
Rev 1.7
Last modified:
\\awpvcp01
Rev 1.6
Last modified:
I am trying AWK to get this output:
\\awpvcp01 Rev 1.7 Last modified:
\\awpvcp01 Rev 1.6 Last modified:
Am I trying to make this harder than it should be? Here is my attempt:
awk...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.