On Sun, Aug 1, 2010 at 2:34 PM, Mehul Ved <mehul.n....@gmail.com> wrote:
> Try
>
> sed -e 's/_/ /g' inputfile | sed -e 's/^ *[^ ]* //' | sed -e 's/^\(.*\)
> .*/\1/' | sed -e 's/ //g' > outputfile
>
> Not sure if there's a way to do it without piping it so many times.

A little simpler
sed -e 's/_/ /g' -e 's/^ *[^ ]* //' -e 's/^\(.*\) .*/\1/' -e 's/ //g'
inputfile > outputfile

_______________________________________
Pune GNU/Linux Users Group Mailing List 

Reply via email to