Incredibly simple question i'm sure but I can't seem to figure it out. I'm attempting to perform an in-place search and replace on multiple .txt files within a directory - and want this to be confined to a specific column only. I've tried:
perl -pi -w -lane '$F[0] = s/AAA/BB/;' *.txtBut this replaces AAA with BB globally, rather than within $F[0] only. Why is this happening?
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |