
December 5th, 2002, 07:07 AM
|
|
Contributing User
|
|
Join Date: Dec 2001
Location: Houston, TX
Posts: 383
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 12
|
|
|
rename s/\.txt/.doc/ *.txt
Or if you want to use a more sophisticated regex to avoid documents like this-has-a-.txt-that-is-not-the-extension.txt being changed into this-has-a-.doc-that-is-not-the-extension.txt
then that's fine as well. But that's an okay regex for 95% of the cases.
Oh, also, this isn't a "standard Unix(TM) command, but it does come with most Perl installations that I know of and Perl is on most Unix machines that I know of.
|