[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: shell scripting



On Fri, 8 Feb 2002 12:56:01 +0530
"Rahul Garg" <rahul shaktipro com> wrote:

> 
> 
> 
> well , i am new to shell scripting.
> what i want to do is 
> open(HANDLE,filename);
> @files = <HANDLE> ;
> foreach $line(@files)
> {
> #####
> }
> close(HANDLE);
> How will i do it in shell script!


Try -

while read line
do
...
do_some_stuff_with_line_variable_here
...
done < filename

--
Görkem
Gelecek A.S





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]