Perl

From VVCWiki
Revision as of 14:18, 7 October 2009 by Vvc (talk | contribs) (Perl trick)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
  • Replace a field number 18 in multple files "in-place"
for i in REG*D* REG*T* ; do perl -i -lane '$F[18]=500 if /rgmqrcx/;print "@F"' $i/rgconfig.ini ; done