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

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

Rodolfo Medina wrote:
> Hi.
> 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


Roberto C. Sanchez

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: