in reply to how to in-place update a dataset?
Use the -i option for command line perl, e.g,
perl -pi -e 'chomp; ($_ = "\t$_\t") =~ s/\t(?=\t)/\tMissing/g;' \ -e 's/\A\t//; s/\t\Z/\n/;' RawFile
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: how to in-place update a dataset?
by littlewenwen (Novice) on Mar 14, 2013 at 14:24 UTC |
In Section
Seekers of Perl Wisdom