Re: bash script example for renaming files (Was: Re: Backing up suggestions?)
- From: houghi <houghi@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 22 Aug 2006 23:29:15 +0200
houghi wrote:
David Bolt wrote:
[ ! -e "$(dirname $FILE)/$NEW_NAME" ] && break<snip>
The idea was that it made sure that there wouldn't be another file with
the same name.
Ah, there it was. I removed that line as well. I just resetted the counter
to 3000, so I was sure no number would be close.
Darn. Just found another directory with 4.000 prictures in it. Forgot
about them. Oops. :-)
Oh well, if I wait another hour, it will be another day, so no risk in
overwriting anything by accident. :-)
I am sure glad I put the date in that name.
And just some stats:
[~/wallpaper]
houghi@penne : du -sh
5.4G .
[~/wallpaper]
houghi@penne : find . -type f|wc
26285 26285 1253741
Now I will be burning several of them to a DVD and put those in a
seperate directory ...
.... and run something like:
for I in `find ~/wallpaper/`;do RANDOM_ORDER && SLIDESHOW;sleep 3 ;done
(Ok, the RANDOM_ORDER must be done first)
That will be a, ah, uhm, 22 hour slideshow. Who brings the popcorn? And
beer. You need a LOT of beer for such an event. :-D
--
houghi
.
All opinions are not equal. Some are a very great deal more robust,
sophisticated and well supported in logic and argument than others.
- References:
- Backing up suggestions?
- From: Bob Adams
- Re: Backing up suggestions?
- From: orrin1933-usenet
- Re: Backing up suggestions?
- From: David Bolt
- Re: Backing up suggestions?
- From: houghi
- Re: Backing up suggestions?
- From: David Bolt
- Re: Backing up suggestions?
- From: houghi
- Re: Backing up suggestions?
- From: David Bolt
- Re: Backing up suggestions?
- From: houghi
- Re: Backing up suggestions?
- From: David Bolt
- bash script example for renaming files (Was: Re: Backing up suggestions?)
- From: houghi
- Re: bash script example for renaming files (Was: Re: Backing up suggestions?)
- From: David Bolt
- Re: bash script example for renaming files (Was: Re: Backing up suggestions?)
- From: houghi
- Backing up suggestions?
- Prev by Date: Intel 536EP modem w/ 10.1
- Next by Date: Re: Add installation source on Suse 10.1
- Previous by thread: Re: bash script example for renaming files (Was: Re: Backing up suggestions?)
- Next by thread: Re: bash script example for renaming files (Was: Re: Backing up suggestions?)
- Index(es):
Relevant Pages
|