Tuesday, June 14, 2016

Script - Move file/dir from one location to another

$ more movefile.sh
#!/bin/sh
# @expanor, LLC
# Change permission and move files to different location
# K B. - Tue Jun 30 10:36:09 EDT 2015
#
FIXnMOVE () {
        cd $1
        chmod 740 *; chown sam:other *
        mv * $2
}
FIXnMOVE /export/home/sam/dir1 /export/home/sam/dir2
echo Done
echo ""
# EOF:

No comments:

Post a Comment