add: massmove = Rename files in a directory in an edited list fashion

This commit is contained in:
Sebastian Tramp 2011-02-08 21:13:23 +01:00
parent 0c41b44cea
commit 3f86e1cba2

View file

@ -76,3 +76,10 @@ alias mmv='noglob zmv -W'
function webcam () {
mplayer -cache 128 -tv driver=v4l2:width=350:height=350 -vo xv tv:// -noborder -geometry "+1340+445" -ontop -quiet 2>/dev/null >/dev/null
}
# Rename files in a directory in an edited list fashion
# http://www.commandlinefu.com/commands/view/7818/
function massmove () {
ls > ls; paste ls ls > ren; vi ren; sed 's/^/mv /' ren|bash; rm ren ls
}