L
laurentv
Guest
I try to remove the '0' at the beginning
01 -> 1
02 > 2
...
09 -> 9
10 > 10
11 > 11
...
99 > 99
Please
Help
01 -> 1
02 > 2
...
09 -> 9
10 > 10
11 > 11
...
99 > 99
Please
Help
sed 's/^[0]*//' yourfile.txt
sed -i 's/^[0]*//' yourfile.txt
sed 's/^[0]*//' yourfile.txt > newfile.txt
01 - Do thing 1
02 - Do thing 2
03 - Do another thing
04 - Wibble
05 - blah blah blah
06 - etc
07 - etc
00008 - etc
000000000009 - etc
010 - etc
011 - end
1 - Do thing 1
2 - Do thing 2
3 - Do another thing
4 - Wibble
5 - blah blah blah
6 - etc
7 - etc
8 - etc
9 - etc
10 - etc
11 - end