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.
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.