in reply to One liner to S & R by column

So, what code have you already written and how did it fail for you?

Replies are listed 'Best First'.
Re^2: One liner to S & R by column
by dirtdog (Monk) on Dec 23, 2013 at 17:07 UTC

    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>

      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'