Renaming files in one shot
Dhénin Jean-Jacques
dhenin at gmail.com
Fri Jan 26 15:36:39 UTC 2007
# more ~/bin/renomme
NUM=$1
shift
NOUVEAU=`echo $* | sed 's/ /_/g' `
find . -inum $NUM -exec ln {} $NOUVEAU \;
2007/1/26, Vittorio <vdemart1 at tin.it>:
> Under a directory I have many pdf files named according to M$ Windows
> rules, that is:
>
> Marylin Monroe.pdf
> James Stewart.pdf
> Alice in
> Wonderland.pdf
> Ludwig Van Beethoven.pdf
> .....
> .....
>
> Now I'd like to
> rename them ** IN ONE SHOT ** (some more steps would be acceptable
> anyway!) deleting all the blanks, that is
>
> MarylinMonroe.pdf
> JamesStewart.pdf
> AliceinWonderland.pdf
> LudwigVanBeethoven.pdf
> ........
> ........
>
> How can I do that?
>
> Ciao
> Vittorio
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
--
jjd
More information about the freebsd-questions
mailing list