|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [Plug] quick solution please
|
Or, either of these should do the trick:
http://www.voicenet.com/~mortis/projects/misc/foreach.pl
http://www.voicenet.com/~mortis/projects/misc/foreach.tar.gz
The C code is older than my grandmother, and I have no idea if it's
as good as the perl code (though they were supposed to be implementations
lf the same thing).
$ ls *.txt | perl foreach.pl "mv $pre.txt $pre.new"
but do this first:
$ ls *.txt | perl foreach.pl "echo mv $pre.txt $pre.new"
to make sure what you're trying to do is sane... :)
bada-bing
bada-boom
k
------------------------------------------------------------------------------
Reader, suppose you were an idiot. And suppose you were a member of Congress.
But I repeat myself.
-- Mark Twain
mortis@voicenet.com http://www.voicenet.com/~mortis
------------------------------------------------------------------------------
On Tue, 6 Jul 1999, Jack Wilkinson wrote:
> how can one change the extention on a group of files? I've got a bunch of
> .txt files, and I want to drop the extention... like make text.txt just
> text... for a group... how could I do it all in one command?
>
>
> _______________________________________________
> Plug maillist - Plug@lists.nothinbut.net
> http://lists.nothinbut.net/mail/listinfo/plug
>
_______________________________________________
Plug maillist - Plug@lists.nothinbut.net
http://lists.nothinbut.net/mail/listinfo/plug
|
|