in reply to
changing the first number of every line
perl -i~ -p -e 's/^0/1/' *.txt
[download]
-i
changes the files, backups are created with the
~
appended
-p
prints each line after applying the code.
The code just replaces 0 at the beginning of a line with 1.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Comment on
Re: changing the first number of every line
Select
or
Download
Code
In Section
Seekers of Perl Wisdom