I’m searching a way to delete all the spaces (0x20 '\ ’ caracters) from a file named map3.cssm.
It works with sed ‘s/\ //g’ map12x12/map3.cssm > map12x12/map003.cssm but I wanted to redirect the result displayed by sed to the file itself.
sed ‘s/\ //g’ map12x12/map3.cssm > map12x12/map3.cssm resulted to an emply file sed ‘s/\ //g’ map12x12/map3.cssm >> map12x12/map3.cssm resulted to a double content !
Which redirect to a tempfile and move back to the original file. So some folks would insist that sed is not a file editor because if the original file has a symlink then it might broke. Also a fifo is a secure way of making tempfiles e.g. not colliding with thesame file name within your local files.