Gentoo Archives: gentoo-user

From: "Matthew R. Lee" <gentoo@××××××××××.org>
To: Gentoo <gentoo-user@l.g.o>
Subject: [gentoo-user] [OT]batch processing html files
Date: Wed, 30 Apr 2008 15:52:19
Message-Id: 200804301152.10540.gentoo@matthewlee.org
1 I have a folder full of .html files and I need to go through and replace in
2 each and every one of them a couple of bits of info. I know I can do this
3 using the following from the command line:
4 sed 's/VV, ppp-ppp/81, 51-67/' file.html > newfile.html | mv newfile.html
5 file.html
6 Problem is I need to do this on nearly 200 files. I assume it could be done
7 with a script, but I have zero experience in writing scripts. I've looked
8 through a few how-to's but haven't found anything I understand sofar. I want
9 to learn how to script, but my Prof want's this done yesterday as the
10 associated paper has just been published.
11 Cheers
12 Matt
13 --
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15 Dr. Matthew R. Lee
16 Instituto Biologia Marina 'Jurgen Winter'
17 Universidad Austral de Chile
18 Campus Isla Teja
19 Valdivia
20
21 matt@××××××××××.org
22
23 URL: meiochile.matthewlee.org
24 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
25 --
26 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] [OT]batch processing html files Johann Schmitz <johann@×××××××××.net>
Re: [gentoo-user] [OT]batch processing html files Alan McKinnon <alan.mckinnon@×××××.com>
Re: [gentoo-user] [OT]batch processing html files Willie Wong <wwong@×××××××××.edu>
Re: [gentoo-user] [OT]batch processing html files Etaoin Shrdlu <shrdlu@×××××××××××××.org>