On Fri, Sep 16, 2011 at 12:07 AM, Aaron Toponce <firstname.lastname@example.org>
On Fri, Sep 16, 2011 at 12:03:40AM +0800, lina wrote:Yes. Checkout the rename(1) command. It comes from Perl, and can be used
> mv *.txt *.pdf
> can it be done * way?
> all the *.txt in current directory?
for exactly that. Or, you could write a simple for-loop:
for FILE in *.txt; do mv $FILE.txt $FILE.pdf; done
You have options.
In this situation,
I wish the *.txt can be used, not input a.txt, b.txt, c.txt one by one,
just in the script, the *.txt can leads to all the file in present directory.
. o . o . o . . o o . . . o .
. . o . o o o . o . o o . . o
o o o . o . . o o o o . o o o