Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. date -d "$1" >/dev/null 2>/dev/null
  4. VALID="$?"
  5.  
  6. if [ $VALID ]
  7. then
  8. echo "Valid!"
  9. else
  10. echo "Not valid!"
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement