[ale] mass file modification
Michael B. Trausch
mike at trausch.us
Sun Mar 30 01:42:28 EDT 2008
On Sun, 2008-03-30 at 01:11 -0400, Jim Popovitch wrote:
> It's the length and charcters in the replacement string (html +
> javascript) . Encoding that for sed would test my patience and skill.
> ;-)
Oh, dear. 43,000 static HTML documents?
If sed won't work, I'd probably resort to brute-forcing it with a Python
script that took a single file as a parameter, processed it in the way
that it needs processing, and using find + xargs to run it on all the
files... it'll probably take a little while, but it'll work.
You could also use $FAVORITE_SCRIPTING_LANGUAGE to build the sed command
line and just do it that way.
--- Mike
--
Michael B. Trausch mike at trausch.us
home: 404-592-5746, 1 www.trausch.us
cell: 678-522-7934 im: mike at trausch.us, jabber
Ubuntu Unofficial Backports Project: http://backports.trausch.us/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.ale.org/pipermail/ale/attachments/20080330/ca80667c/attachment.bin
More information about the Ale
mailing list