Voytek wrote:
I have a simple script for backing up user web data:

cd /home
    for i in `ls` ; do
        tar -cf $i.tar /home/$i
        gzip $i.tar
    done

that works as desired, except, it process every directory;
I'd like to only process web domains, but, skip user dirs;
web domains are of format:

/home/domain.tld.au
or
/home/domain.tld

users do not have any '.'

how can I only include when there is at leats one '.' in $i ?




find is your friend. man find for more info

Fil
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to