R
Ralf Müller
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 '<regex>' 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
i wanted to $subject of a file. For a single regex, i used perl (ok, that's my fault):
perl -pi -e '<regex>' 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