Kyle Burton on Tue, 6 Jul 1999 14:59:11 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [Plug] quick solution please


One way to change .txt files to .new files:

$ ls *.txt | perl -ne 'chomp;$f=$_;s/\.txt/.new/;print "mv $f $_\n";' | /bin/sh

I'm sure there will be countless others...

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