LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-13-2006, 09:47 PM   #1
twlilq
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
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
 
Old 07-13-2006, 10:15 PM   #2
bushidozen
Member
 
Registered: Oct 2004
Posts: 215

Rep: Reputation: 30
This might work, but I haven't tested it:
Code:
for i in *; do ./"$i"; done
 
Old 07-13-2006, 10:22 PM   #3
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
just a wild guess:
Code:
find /path/to/directory -maxdepth 1 -type f -perm -u=x -exec {} \;
 
Old 07-13-2006, 10:42 PM   #4
twlilq
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
tks so much!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "Run Filters on Folder" does not work automatically in Thunderbird Bruce Hill Slackware 8 10-10-2006 03:54 PM
Apache can not run when I use for Documentroot folder in which mounted a partition rustam Linux - General 1 12-09-2005 06:48 AM
how to run a script on subfolder file in a folder saggi_sam Linux - Newbie 5 07-13-2005 06:04 AM
Why Do I need to run updatedb each time I search for a file or folder? lennysokol Linux - Software 4 05-30-2005 11:49 PM


All times are GMT -5. The time now is 02:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration