delete the end of each line in a file with sed
Here is the problem
I have 1 file: foo.txt witch look like this: Code:
123K bla bla bla Code:
123K :cry: |
Try this...
sed 's/\(.*K\).*/\1/' file.txt |
Or this: sed 's/[kK].*/K/' foo.txt
|
Thanks
that work just fine. |
All times are GMT -5. The time now is 06:43 PM. |