[Techtalk] backup - tar
Akkana Peck
akkana at shallowsky.com
Thu Sep 2 11:00:16 EST 2004
Conor Daly writes:
> Just had a look and I don't see a char equivalent for seq (echos numbers in
> sequence) but the following will work:
>
> create the file 'alpha' containing one letter per line (you probably need
> upper and lowercase also). Then, in your script, do:
>
> for $LETTER in `grep [a-n] alpha`; do
> ls -d /home/${LETTER}*
> done
Don't forget that lots of files start with non-alphanumeric
characters. '.', for example. For a backup, be sure to include all
printable ascii characters which can be part of a filename (not '/').
...Akkana
More information about the Techtalk
mailing list