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

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -