Re: bash script example for renaming files (Was: Re: Backing up suggestions?)



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.
.



Relevant Pages

  • Re: Back to 10.0 for me
    ... houghi wrote: ... don't chat politely with anybody deliberately misrepresenting me. ... That must be Vahis then. ... I don't write as much about beer as houghi since I ...
    (alt.os.linux.suse)
  • Re: FOSDEM info
    ... houghi wrote: ... excuse to get to Belgium and taste how beer sgould taste. ...
    (alt.os.linux.suse)
  • Re: 10.3? + OT (allowed in this group)
    ... houghi wrote: ... Also that way they can ghave a great party on ... And they do have a good reason for Titties And Beer! ...
    (alt.os.linux.suse)
  • Re: Where is ifconfig in SuSe 10.1?
    ... David Bolt wrote: ... a few more reading lessons. ... but more beer is always good. ...
    (alt.os.linux.suse)