Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files
- Date: Fri, 07 Aug 2009 01:04:08 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files
- References: <4A7504C9.9070806@example.com> <20090802034303.GA70018@example.com> <87hbwqd481.fsf@example.com> <4A785E61.8080909@example.com> <874osmcul8.fsf@example.com> <20090805131057.GA10843@example.com> <4A79895C.5090900@example.com> <20090805213839.GB10843@example.com> <4A7AE9C5.7030606@example.com>
Dave M G writes: > Let's see if I understand this... > > $ cat > doit <<__EOF__ > uniconverter input "$1" output "${1%.ai}.svg" > __EOF__ > $ find . -maxdepth 1 -name _\* -print0 | xargs -0 doit > > > This creates a batch named "doit", and then in the second command I > execute the "doit" batch on the files found by the "find" command? > > Is that all that's happening? Yes. Two further points: you probably should include a "shebang" to let exec know which interpreter you want like this #!/bin/sh uniconverter input "$1" output "${1%.ai}.svg" and (as jep alludes to) to execute the script it needs to be executable (the chmod command) and findable by xargs. Since . is not in $PATH by default (for good and sufficient reasons I won't go into here), you should have xargs invoke it as "./doit".
- Follow-Ups:
- References:
- [tlug] Batch conversion of a bunch of Illustrator files to SVG files
- From: Dave M G
- Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files
- From: Scott Robbins
- Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files
- From: Stephen J. Turnbull
- Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files
- From: Dave M G
- Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files
- From: Stephen J. Turnbull
- Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files
- From: Curt Sampson
- Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files
- From: Dave M G
- Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files
- From: Curt Sampson
- Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files: echo not cat <<__EOF__
- Next by Date: Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files
- Previous by thread: Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files: echo not cat <<__EOF__
- Next by thread: Re: [tlug] Batch conversion of a bunch of Illustrator files to SVG files
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links