sed question
Hi,
i have a file with the following format: 'something' -> 'something new' I now want to write only the 'something new' in a different file (i want to cut off the whole "'something' -> " in every line). Any ideas which program would do this best/easiest, sed or cut (or any other?)? I haven't worked with any of them for now... THank you! CU |
If you just want to remove "something" when it is at the beginning of the line then try:
sed 's/^something//g' /path/to/file |
Hmmm, why not just open the "something file" in vi and do this
:%s/something//g that will remove something in the entire file globally. then :w "new filename" seems much easier.....to me.. Mark |
All times are GMT -5. The time now is 09:02 PM. |