Hii to all..
I have a file stud.lst
bash-3.1$ cat stud.lst
NO NMAE DOB 10 +2 BE AVG
075 syam saksena 12/12/55 500 398 550 48.26
099 sachin 11/05/47 450 500 600 51.66
300 mohan kumar 19/04/43 500 600 700 60.00
100 john 12/12/52 800 750 700 75.00
125 anil 03/09/38 800 700 750 75.00
101 sourav 30/08/56 600 780 900 76.00
I wanna give provision to change the personal details... with this file in a shell script
echo -n "record u wanna change, give student name :"
read name
grep $name stud.lst #shows record need to update
echo "Enter new data like no name dob 10 12 BE "
# here I've to read the data and calculate average and update the whole line to file....
# How to do it....
Thanking u...