Date: Fri, 26 Jan 2007 16:09:32 +0100 From: "=?ISO-8859-1?Q?Dh=E9nin_Jean-Jacques?=" <dhenin@gmail.com> To: Vittorio <vdemart1@tin.it> Cc: freebsd-questions@freebsd.org Subject: Re: Renaming files in one shot Message-ID: <12437d830701260709g75cf6b04tc3c46a3282a95e17@mail.gmail.com> In-Reply-To: <1105e9eb49e.vdemart1@tin.it> References: <1105e9eb49e.vdemart1@tin.it>
next in thread | previous in thread | raw e-mail | index | archive | help
# more ~/bin/renomme NUM=$1 shift NOUVEAU=`echo $* | sed 's/ /_/g' ` find . -inum $NUM -exec ln {} $NOUVEAU \; 2007/1/26, Vittorio <vdemart1@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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- jjd
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?12437d830701260709g75cf6b04tc3c46a3282a95e17>