http://www.perlmonks.org?node_id=1004914


in reply to changing the first number of every line

perl -i~ -p -e 's/^0/1/' *.txt
-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.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ