Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A command to change a set of files' extension' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A command to change a set of files' extension
Authored by: wgscott on Mar 14, '05 10:02:34AM
If you use the zsh shell provided with os x, you can do the following: autoload -U zmv alias mmv="noglob zmv -W" Then you have a nice command for batch-renaming a set of files, eg, foo.txt bar.txt foobar.txt mmv *.txt *.newsuffix

[ Reply to This | # ]
A command to change a set of files' extension
Authored by: wgscott on Mar 14, '05 10:07:19AM
I apologize for the formatting. There are three commands, the first two can be put into a zsh startup file: autoload -U zmv
alias mmv="noglob zmv -W"
mmv *.txt *.newsuffix


[ Reply to This | # ]
A command to change a set of files' extension
Authored by: adrianm on Mar 14, '05 10:08:48AM

zsh rocks
why oh why did apple change the default shell from tcsh to bash when zsh was available?



[ Reply to This | # ]
bash
Authored by: dr_turgeon on Mar 14, '05 01:07:03PM

I think that bash is the fastest growing shell, very popular with linux folks. zsh is also considered to have feature sprawl.



[ Reply to This | # ]
bash
Authored by: adrianm on Mar 14, '05 04:00:17PM
Agreed. Where zsh really shines is as an interactive shell.

I just love the way I type, eg tar ctab and it knows that it must be followed by f or v and says so...

Scripted completion is great :-)

[ Reply to This | # ]