Advertisement
sergio_educacionit

file-show.sh

Feb 3rd, 2025
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. fichero=$1
  4.  
  5. if [ -f $fichero ]; then
  6.  
  7. file $fichero
  8.  
  9. else
  10. echo "El archivo no existe."
  11. exit 1
  12. fi
  13.  
  14. exit 0
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement