How about sed ? $ more file | sed '/ //g/' > file_modified make sure of the syntax.... because I am not... E > How can I delete every blank line in a file? I can delete the next blank > line by saying :/^$/d but I don't want to sit here typing that nutil > they're all gone..