I would like to subsitute in a txt file the followings targets for example
"code_000040" by "code_40" and "code_067340" by "code_67340" and so on..,
in other words to remove the zeros in the 6 number ids before the real numbering id starts
Plaese any help!!
for filename in code_; do newname=$(echo $filename | sed 's/_0/_/')
– user61677 Mar 03 '14 at 12:02That the quotes are there for safety in case you have spaces or some other strange characters in the filenames.
– orion Mar 03 '14 at 13:26