Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ksh
- file="test.txt"
- while IFS= read -r line
- do
- # display $line or do somthing with $line
- echo "$line"
- fileloc=`locate "$line"`
- i=`echo $?`
- if [ $? != 0 ]
- then
- echo "Unsuccessful"
- else
- echo $fileloc
- cp $fileloc /home/prakameg/PO_AUDIT
- echo "Successful"
- fi
- done <"$file"
- 11687892
- 11687893
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement