jackjindtnt / KI

Ki
0 stars 0 forks source link

sed #4

Open jackjindtnt opened 7 years ago

jackjindtnt commented 7 years ago

With sed, the [:...:] syntax for character classes needs to be combined with the syntax for character sets in regexps, [...], resulting in the somewhat confusing [[:...:]]: sed 's/ //g' input.txt > no-spaces.txt sed 's/[[:blank:]]//g' input.txt > no-spaces.txt sed 's/[[:space:]]//g' input.txt > no-spaces.txt sed -i "s/ //g" file -------------REPLACE--------------------- http://stackoverflow.com/questions/12661952/using-sed-to-replace-numbers http://stackoverflow.com/questions/14990314/sed-replacing-numbers-in-string