> for i in *.foo; do mv -i "$i" $(basename "$i" .foo).bar; done
i'm fond of ${i/.foo/.bar} but yours is more exacting. nice.
more or less:
function lmh { ls --time-style=long-iso --color=always -F -l -h
$* | more -f ; }
function hg { history | grep $* ; }
function dush { du -sh $* ; }
alias dfh="df -H"
export BlkBlk="[0;30;40m"
export BlkRed="[0;30;41m"
export BlkGrn="[0;30;42m"
export BlkYel="[0;30;43m"
export BlkBlu="[0;30;44m"
export BlkMag="[0;30;45m"
export BlkCyn="[0;30;46m"
export BlkWht="[0;30;47m"
export DefDef="[0m"
export RedBlk="[0;31;40m"
export GrnBlk="[0;32;40m"
export YelBlk="[0;33;40m"
export BluBlk="[0;34;40m"
export MagBlk="[0;35;40m"
export CynBlk="[0;36;40m"
export WhtBlk="[0;37;40m"
Best,
Mike
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list