Projects / KFileReplace / Comments

Comments for KFileReplace

04 Jan 2001 15:04 redhog

Shellscript? Regexps?
This seems to be a nice GUI to

replace () {
find -regex "$1" | while read name; do
if ![ -d "$name" ]; then
cp -f "$name" "$name.tmp"
cat "$name.tmp" | sed -e "$2" > "$name"
rm -f "$name.tmp"
fi
done
}

Certainly nice for newbies. But why isn't this a part of Konqueror?

Oh, and btw, the scripty above have the usage:
replace regexp sexp
where regexp is a regexp to match filenames with and sexp is a valid sed expression, for example a regexp replace expression, like "s/regexp/replacement/", to be used for replacing things in the matched files.

Screenshot

Project Spotlight

ReciJournal

An open, cross-platform journaling program.

Screenshot

Project Spotlight

Veusz

A scientific plotting package.