LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to run everything in a folder (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-run-everything-in-a-folder-463835/)

twlilq 07-13-2006 08:47 PM

how to run everything in a folder
 
hi, I'm trying to run all scripts in a given folder. How do I do that?

tks,
-T

bushidozen 07-13-2006 09:15 PM

This might work, but I haven't tested it:
Code:

for i in *; do ./"$i"; done

perfect_circle 07-13-2006 09:22 PM

just a wild guess:
Code:

find /path/to/directory -maxdepth 1 -type f -perm -u=x -exec {} \;

twlilq 07-13-2006 09:42 PM

tks so much!


All times are GMT -5. The time now is 05:52 PM.