Dizzybacon
06-14-2002, 09:11 AM
I've written a perl script but I think it would work better if I converted it to bash and ran it that way.
In perl I have something like:
open (DATA,"$path/$in");
@data = <DATA>;
close DATA;
foreach $line (@data){
print `rioutil -a $line`;
}
The idea is to open a file and execute the command for each line in the file.
I can't find out how to open the file in bash or to seperate out the lines.
Could someone give me a pointer?
Dizzy
In perl I have something like:
open (DATA,"$path/$in");
@data = <DATA>;
close DATA;
foreach $line (@data){
print `rioutil -a $line`;
}
The idea is to open a file and execute the command for each line in the file.
I can't find out how to open the file in bash or to seperate out the lines.
Could someone give me a pointer?
Dizzy