On Friday 14 May 2010 12:04:42 Merciadri Luca wrote: > I have many text files (actually .tex files) which contain some > sequence or regexp (it depends on the files) that I would like to > remove. Is there a commandline/GUI for doing this massive edit?
(sed -i -e "s/$regexp//" "$file") for a single file. (GNU sed only.) (find $dir -type f -exec sed -i -e "s/$regexp//" {} \;) for all files in a directory. -- Boyd Stephen Smith Jr. ,= ,-_-. =. b...@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
signature.asc
Description: This is a digitally signed message part.