Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
iterating through a hierarchy with a filter
- X-seq: zsh-users 12768
- From: Alexy Khrabrov <deliverable@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: iterating through a hierarchy with a filter
- Date: Wed, 9 Apr 2008 19:56:33 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; bh=FUaTGqC6TkX9iv8avFRRD5wtJBuHiXgIvjSnhC6RrGo=; b=MJg7+RPUT61LtSJeDkdBnATmCr6IOdLGWPqkS7F3TzNx78BAcRzFZltuRWSMwRPAOrjv6ydPWZUA51riH9CfhFBh+T93i1DjIxxQzZIz7NlZwQJ/8vWRZZAq/LmVDCZ2D3dQBVNyJrRnwO8VLs0pvrI6rizfCsxbst8+mkeXGAU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; b=F9Z9jOXpysDQ0TFE3F0l/+jwPVF2ozneVgeul92cujMfHdHeRALSgWt+m3ETOelaw+X+LtA8en67JfNNXXg55GkEVmjB+GYpY59RKg++87uVTNbQVvszzLiUF9d/XOr2+U4w0EwgSlPc0QHpA8mE1gQ4/07DVBuUi9PxDtSp01E=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Greetings -- I have a series of XML files scattered around a
hierarchy. I also have a filter script which reads stdin and writes
stdout in a standard Unix way.
I need to create a mirror hierarchy where files are results of
applying the filter to the originals, replacing the original
extension, say .xml, with the result extension, say .txt. Except for
the extension change, the hierarchy should be preserved.
Ideally, my script would not know anything about this whole process,
so I can take any filter and use it for my transforms. The hierarchy
for the transformed tree must be created anew so I can easily throw it
away (i.e. we do not output the results next to the originals). The
original and result extensions should be provided as a parameter to
the process.
Which zshfoo can I use for it above and beyond find with exec helper
script?
Cheers,
Alexy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author