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
period.tbl
Thanks!
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
period.tbl
Thanks!