Guest User

Untitled

a guest
Jul 23rd, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #remove white space before path
  2. echo $cwd
  3. FOO_NO_LEAD_SPACE= $path
  4. #echo "path is:"$FOO_NO_LEAD_SPACE
  5. FNMAE_NO_LEAD_SPACE=$filename
  6. filepath="$FOO_NO_LEAD_SPACE/$FNMAE_NO_LEAD_SPACE"
  7. #echo "filename is $filename"
  8. echo "Surya filename is $filepath"
  9.  
  10.  
  11. if ls $filepath >1; then
  12. echo "file arrived"
  13. fname=$(ls $filepath|awk -F"/" '{print $NF}')
  14. existingfiels="$existingfiels $fname"
  15.  
  16. echo "--------------------------------------------- $filepath1"
  17.  
  18. #mail -s "files not there" "sample@gmail.com"
  19. else
  20. echo "files not there"
  21. counter=$((counter+1))
  22. missingfiles="$missingfiles $FNMAE_NO_LEAD_SPACE"
  23. fi
  24.  
  25. $existingfiels
  26.  
  27. $existingfiels
Add Comment
Please, Sign In to add comment