
Andrea Turrini <andrea.turrini@gmail.com> writes:
I think you can use grep instead of sed; something like
grep -v "^#|" file.po > temp.po; mv temp.po file.po
I never managed to force sed to remove also the line feed at the end of the removed string.
You are probably looking for sed -i.old '/^#.*/d' file.po It replaces in place and saves the old file as file.po.old (just in case something goes wrong). -- Karl Eichwalder SUSE LINUX Products GmbH R&D / Documentation Maxfeldstraße 5 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-translation+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-translation+owner@opensuse.org