in reply to In-place search and replace confined to a specific column
You're using the wrong operator. You are assigning to $F[0] instead of using regex binding.
perl -pi -w -lane '$F[0] =~ s/AAA/BB/;' *.txt
could work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: In-place search and replace confined to a specific column
by Anonymous Monk on Jan 29, 2016 at 09:55 UTC | |
by Discipulus (Canon) on Jan 29, 2016 at 10:05 UTC |