Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #remove white space before path
- echo $cwd
- FOO_NO_LEAD_SPACE= $path
- #echo "path is:"$FOO_NO_LEAD_SPACE
- FNMAE_NO_LEAD_SPACE=$filename
- filepath="$FOO_NO_LEAD_SPACE/$FNMAE_NO_LEAD_SPACE"
- #echo "filename is $filename"
- echo "Surya filename is $filepath"
- if ls $filepath >1; then
- echo "file arrived"
- fname=$(ls $filepath|awk -F"/" '{print $NF}')
- existingfiels="$existingfiels $fname"
- echo "--------------------------------------------- $filepath1"
- #mail -s "files not there" "sample@gmail.com"
- else
- echo "files not there"
- counter=$((counter+1))
- missingfiles="$missingfiles $FNMAE_NO_LEAD_SPACE"
- fi
- $existingfiels
- $existingfiels
Add Comment
Please, Sign In to add comment