in reply to Re: One liner to S & R by column
in thread One liner to S & R by column

This is what I have so far, which will work, but i would need multiple one liners to include all security types

 perl -p -i -e  's/CUSIPY/CUSIPH/g' <filename>

Replies are listed 'Best First'.
Re^3: One liner to S & R by column
by Corion (Patriarch) on Dec 23, 2013 at 17:09 UTC

    If you want to play it safe and list all security types, you can use alternation to list them all (see perlre and perlretut:

    perl -p -i.bak -e 's/(CUSIP|CUSIQ|something else)Y/${1}H'