[PLUG] File content modification

Gaurav Pant gauravggs at gmail.com
Mon Aug 9 20:40:54 PDT 2010


Hi.

On Mon, Aug 9, 2010 at 11:01 PM, Manas Alekar <maalekar at gmail.com> wrote:
> cat try.txt | cut -d '_' -f2- | rev | cut -d '_' -f2- | rev
>
> Manas
>

does not work, leaves the underscores between the words.
this is what u get.
abc
abc_xyz
abc_pqr_xyz

this is what is expected
abc
abcxyz
abcpqrxyz

--dexter



More information about the plug-mail mailing list