[PLUG] File content modification

Gaurav Pant gauravggs at gmail.com
Tue Aug 10 09:10:54 IST 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