Hi scott,
Did you find any thing on the set variables needed by you.
As per the script provided by you..
have hashed out the below contents
get_line()
{
inp_line=""
# while ! [ ${inp_line} -eq ${inp_line} >> /dev/null 2>&1 || ! test ${inp_line}
# do
echo -n "Line Number to replace: "
read inp_line
#done
}
Now when i run..
UREKA! it worked
[root@LAB-A Jobby]# ./particular1.sh File to read: [file.txt]: file1
Line Number to replace: 2
Word to search for: this
Replacement value: oracle
hi this is jobby
oracle is me
this is w2
this is jobby's bay
this is next datacenter
this is next to jobby
But the mystery still remains unresolved..

Suppose if i want to replace "is" on line one it
then...
[root@LAB-A Jobby]# ./particular1.sh File to read: [file.txt]: file1
Line Number to replace: 1
Word to search for: is
Replacement value: oracle
hi thoracle oracle jobbythis is me
this is w2
this is jobby's bay
this is next datacenter
this is next to ashwin
Did you get it..it well i wanted is of third field to be replaced..
I guess awk does the trick..
awk 'NR==1{$3="oracle"}1' file1 can u suggest me using that in our script instead of using sed.
Thanks for you patience!
Regards
whizkidash