execfile.sh 385 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. # File: execfile.sh
  3. # Name: D.Saravanan
  4. # Date: 15/09/2020
  5. # Script to find the executable files
  6. echo "List of executable files in the $1 directory:"
  7. # find all executable files in the current directory
  8. # ./execfile
  9. #find . -perm -u+x -type f
  10. # find all executable file in the directory given as argument
  11. # ./execfile.sh ~/Documents
  12. find "$1" -perm -u+x -type f