What have you tried?
perl -pli.bak -e '$. != 1 and substr($_,18, 1) =~ tr/Y/H/;' filenameHere's how to read it:
perlrun, perlintro, and perlop should contain 99% of what you need to learn to get a good start on the next one-liner yourself.
Update: Added play by play explanation.
Update2: Fixed issue where files aren't zero-indexed with respect to $. (Thanks Jim,Laurent_R)
Dave
In reply to Re: One liner to S & R by column
by davido
in thread One liner to S & R by column
by dirtdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |