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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -