Bash question
jim
cinetron-uEvt2TsIf2EsA/PxXw9srA at public.gmane.org
Thu Dec 22 05:50:42 UTC 2011
Thanks a lot everyone for helping me with this script. I'll try to
digest all these and put something together that does what I need.
Interesting to see all the variations that are possible.
Much appreciated.
Jim
On Wed, 2011-12-21 at 10:42 -0500, Lennart Sorensen wrote:
> On Tue, Dec 20, 2011 at 10:19:05PM -0500, Bill Heagy wrote:
> > I think something like
> >
> > for i in `ls [0-9]* | cut -b1-7|uniq`;do foobar ${i}*pdf -o new${i}.pdf;done
>
> The ${I}*pdf is essentially doing an ls.
>
> > will work. This assumes that all files starting with a digit are
> > eligible: adjust as required. I don't know the syntax for your
> > pdftk command: adjust this as required also. Beware using ">" for
> > redirecting output though: that requires careful use of quotes.
>
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list