View Single Post
Old 04-25-2007, 12:54 AM   #1 (permalink)
rudranee
Recruit
 
Join Date: Apr 2007
Posts: 1
rudranee is on a distinguished road
Question Writing to a file through shell

hi,
I new to shell scripting but have experience with C,C++ and Java for quite some time.
I want to write a shell script where i'm extracting some values from i/p file and writing these to another file.
For reading i'm using

FILE=$1
while read line
do
#some action
done < $FILE

but i'm not able to find how to write to a file
Sorry if asking very bsic question but i have googled and even read some online scripting books but nothing looks satisfactory.

Thanx.
__________________
rudranee is offline   Reply With Quote