linux - Bash - search directory for all scripts -
i need search directory (and subdirectories) scripts , write them out full path , type of script. output should this:
/home/student/scripts/find.sh bash /home/student/scripts/bin/server.pl perl /home/student/scripts/bin/client.pl perl
i know should use find, head , grep determine type of script, bad @ bash, can please me?
this close you're trying get:
find /home/student/scripts -type f -name "*.*" -exec file '{}' +
Comments
Post a Comment