# backup.sh for d in /var/www/html/*/ ; do echo "$d" done

loop through each directory in a target directory

i thought this would be useful for backing up all files in the /var/www/html/ directory rather than having to do each seperately, this loops through all of them


# backup.sh
for d in /var/www/html/*/ ; do
    echo "$d"

Page Views

This page has been viewed 118 times.

Search Code
Search Code by entering your search text above.

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.


Random Quote