[ Date Index ][
Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]
How do I apply a substitution to a bunch of files [eg *.htm] and then save the results back under the same file names.
The following works for one file at at time:
sed 's/whatever/youwant/' onefile.htm > onefile.html
but I've got lots of files and its going to take ages.
Anybody who can come up with a one liner?
Mark
Man find look at the -exec feature
-- 'ooroo
Mike...(:)-) --------------------------------------------------- Email: mike@xxxxxxxxxxxxx o You need only two tools. o ///// A hammer and duct tape. If it /@ `\ /) ~ doesn't move and it should use > (O) X< ~ Fish!! the hammer. If it moves and `\___/' \) ~ shouldn't, use the tape. \\\ ---------------------------------------------------
-- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.