dirtdog has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I'm trying to create a one liner to search and replace any occurance of the value Y in column 19 with an H excluding the header record.
Below is a sample of the file:
0TESTHLDGS201312230830201312230000001633 125459W540 CUSIPY DIREXION DAILY 20 YEAR PLUS 188554D205 CUSIPY3D SYSTEMS CORPORATION 188579Y101 CUSIPY3M CO. 1000375204 CUSIPYABB LTD 1002824100 CUSIPYABBOTT LABORATORIES 100287Y109 CUSIPYABBVIE INC
I thought there would be many examples of this on the net, but I couldn't find any and i'm struggling with the solution.
Any help is much appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: One liner to S & R by column
by davido (Cardinal) on Dec 23, 2013 at 16:47 UTC | |
by Jim (Curate) on Dec 23, 2013 at 17:54 UTC | |
by davido (Cardinal) on Dec 23, 2013 at 18:01 UTC | |
by Laurent_R (Canon) on Dec 23, 2013 at 18:51 UTC | |
by dirtdog (Monk) on Dec 23, 2013 at 17:15 UTC | |
|
Re: One liner to S & R by column
by Corion (Patriarch) on Dec 23, 2013 at 16:44 UTC | |
by dirtdog (Monk) on Dec 23, 2013 at 17:07 UTC | |
by Corion (Patriarch) on Dec 23, 2013 at 17:09 UTC |