A quick Q: how do I command something in large amount
- From: lina <lina.lastname@xxxxxxxxx>
- Date: Thu, 15 Sep 2011 23:58:41 +0800
Hi,
in some directory it has some files, let's say:
a.txt b.txt c.txt d.txt
I want to run a command, suppose it's
txt2pdf -input a.txt -output a.pdf
what if I want to do like
txt2pdf -input *.txt -output *.txt
I tried in bash,
use
for i in a b c
do
txt2pdf -input i.txt -out i.pdf
done
my questions is that how can I read so many files (a, b, c) quickly into
this bash script?
or are there some tips to do it?
Thanks very much for any suggestions,
sorry I can only think of the debian user list to ask now.
--
Best Regards,
lina
- Follow-Ups:
- Re: A quick Q: how do I command something in large amount
- From: Jochen Spieker
- Re: A quick Q: how do I command something in large amount
- From: lina
- Re: A quick Q: how do I command something in large amount
- Prev by Date: Re: Worst Admin Mistake? was --> Re: /usr broken, will the machine reboot ?
- Next by Date: Re: A quick Q: how do I command something in large amount
- Previous by thread: My syster reboots automatically when trying to shut it down.
- Next by thread: Re: A quick Q: how do I command something in large amount
- Index(es):
Relevant Pages
|