Need to update some file abc in my script xyz.sh
Hi All,
This is related to shell scripting, if anybody can help me.
I have a situation in which there is a file 'abc' :
#cat abc
students=1000
classes=20
teachers=50
Now I want to write a script in which I call file abc and update 'classes' to 30. so that new file looks like:
#cat abc
students=1000
classes=30 # done bold to clarify.
teachers=50
How can I do this? Can anybody please let me know?
Lots of thanks.
|