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

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

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