[Ilugc] File operations using shell script

  • From: zulfilee@xxxxxxxxxxxxx (zulfilee)
  • Date: Wed Jun 15 10:57:04 2005

On Tuesday 14 June 2005 20:11, RAJ wrote:

Dear sir,
       I need to do file operation using shell scripts. I need to
open a file , read the contents of file to an array and close the
file. I had searched the net but couldn't get functions for
performing file operations.

Thanks in Advance.

S.Rajkumar


Read the file in a loop and do all operations on it
like variable assignment,etc

while read Variable1
do
  Manipulate Here
done < filename

I hope this will be easy

Regs
Zulfi.A


-- 
Thus spake the master programmer:
Though a program be but three lines long, someday it will have to be 
maintained.
                         -Tao of programming

Other related posts: