hi forums, can you help me on how to make cd and mv code work in this script?
Code:
#!/bin/ksh
#i got it from: http://www.unix.com/shell-programmin...-two-days.html
MAIN_DIR=/home/user/pumela
find ${MAIN_DIR} *.txt -mtime -3> FILE_LIST
tar -cvf archive1.tar -L FILE_LIST
for x in ${FILE_LIST}
rm $x
rm FILE_LIST
done
cd /home/user/pumela #this code not working
mv *.tar ./archive #this code not working also