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

Re: Unix command(s) to eliminate file extension?



Am Freitag, 12. Mai 2006 11:58 schrieb Roberto C. Sanchez:
> > Suppose I have in a directory a certain number of files,
> > all terminating with `.txt', and that I want to eliminate
> > that suffix from all of them.
> > Is there a Unix command, or perhaps a set of commands,
> > that can do so?
> > 
> 
> rename 's/\.txt//' *.txt

I might be a good idea to use
	rename 's/\.txt$//' *.txt
(Just a detail).

Tim



Reply to: