Re: removing blanks from a file



Luka Djigas wrote:
Greetings

Hello.

I have a file, which is the output of one of my programs. It's a
script file, and therefore it's not supposed to have blanks in it.

I don't completely understand the "script file" statement
so this may be way off the mark, but I'd just use a dynamic
language or a *nix filter like awk to remove the spaces
from the file, e.g.,

$ ruby -pe'$_.gsub!(/ /, "")' file_with_spaces > file_without

Regards,
--
Bil
http://funit.rubyforge.org
.



Relevant Pages