Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. #! /bin/sh
  2.  
  3. [ -f ./*.txt ] || echo "Not found!"
  4.  
  5. if ls ./*.txt > /dev/null
  6. then
  7. echo "File Exists"
  8. else
  9. echo "File Doesn't exists"
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement