|
|||||||||||
|
Re: [gentoo-user] [OT]batch processing html files
From: Alan McKinnon <alan.mckinnon(at)gmail.com>
Date: Wed Apr 30 2008 - 12:02:38 EDT
bash to the rescue! try "for": for n in *html ; do sed 's/VV, ppp-ppp/81, 51-67/' $n > newfile.html ; mv > newfile.html $n ; done That assumes that every html file in the current dir that contains VV must have it changed. Adapt as needed :-) Somehow somewhere you can accomplish what you want in one line with a suitable combination of locate, find, grep, for, xargs, sed and awk -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing listReceived on Wed Apr 30 12:04:16 2008 This archive was generated by hypermail 2.1.8 : Sat Aug 02 2008 - 05:05:58 EDT |
||||||||||
|
|||||||||||