Search This Blog

Thursday, March 24, 2011

Unix shell: moves file from working dir to target dir. works from working file.


#!/bin/bash/sh
#moves file from working dir to target dir.  works from working file
#ADMIN_filemove_sh

#Declare Variables
vPath=/start_dir
vDest=/end_dir

#Change perms on file
#chmod 666 $vPath/ADMIN_filelist_move

#Move
while read line
do
mv $vPath/$line $vDest/$line
done<$vPath/ADMIN_filelist_move