$ 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:
#!/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