I have a file in which I need to eliminate everything after the first ;
on every line.
So a file like this:
sdfsdsdf;
fsdfsddf;sdfsd;
Will result in this:
sdfsdsdf
fsdfsddf
I have looked into grep
and sed
. I would appreciate an answer incorporating either of these commands.