2014年3月20日 星期四

echo close file wildcard

Problem:
If you want to separate a string the contain the wildcard such as start *,  in the bach it will display it


Method:
a. Use the quote. echo "*.sh"
b. use the set  -f operator:   (set -f; echo *.sh; set +f)

2014年3月4日 星期二

rsync

USAGE:

rsync -avP /source /destination/
will copy the source folder into destionation.

but  

if rsync -avP /source/ /destination/

will copy the data in source into destionation



Reference
Rsync example