sed use - extract substring from lines of text file
i'm looking for a code to use sed command to extract a substring from the lines of a text file, like the example:
i would cut the end of line start from the space only for the lines that contains filename.cfg and cut the oethers like this:
can anyone help me about the code?
thanks a lot.
Last edited by tastiero; 03-07-2012 at 11:11 AM.