[clue-tech] Bash script question

David L. Anselmi anselmi at anselmi.us
Wed Sep 14 16:43:08 MDT 2005


Angelo Bertolli wrote:
> I have a shell script that does something like this:
> 
> for file in `ls`
> do
> 
> However, I would rather be able to pipe a list of items into the script, 
> instead of relying always on ls:
> 
> ls | myscript
> 
> Is this possible?

Sure:

while read file
do

Dave
_______________________________________________
CLUE-tech mailing list
CLUE-tech at cluedenver.org
http://cluedenver.org/mailman/listinfo/clue-tech



More information about the clue-tech mailing list