zsh-users
 help / color / mirror / code / Atom feed
* zmv another zsh gem
@ 2005-02-15  8:51 zzapper
  2005-02-15 11:06 ` Christian Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: zzapper @ 2005-02-15  8:51 UTC (permalink / raw)
  To: zsh-users

Hi,
In comp.editors I came across mmv and zmv

# zmv "programmable rename"
# Replace spaces in filenames with a underline
zmv '* *' '$f:gs/ /_'
# Change the suffix from *.sh to *.pl
zmv -W '*.sh' '*.pl'
# lowercase/uppercase all files/directories
$ zmv '(*)' '${(L)1}' # lowercase
$ zmv '(*)' '${(U)1}' # uppercase

The case changers don't work on Cygwin because WinXP grumbles target & source filename are the same!
zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm G1VGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-02-21 17:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-15  8:51 zmv another zsh gem zzapper
2005-02-15 11:06 ` Christian Taylor
2005-02-15 21:05   ` Seth Kurtzberg
2005-02-17 19:02   ` Peter Stephenson
2005-02-21 17:08     ` zzapper

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).