From: "Ralf Müller" Date: 2004-07-30T16:50:59+09:00 Subject: subject="apply multiple regex to each line" hi out there, i wanted to $subject of a file. For a single regex, i used perl (ok, that's my fault): perl -pi -e '' file but for $subject i did something like ruby -e 'p gets.gsub(....).gsub(....).gsub(....) while gets' file is there an equivalent expression in perl? And, does anyone know a smart expression to delete lines, which only contain any kinds of spaces? Till now i use: ruby -e 'puts readlines.to_s.gsub(/\n{2,}/,"\n").split(/\n/)' eddi-bef.dump > 1table Thanks ralf