You could do a little search on sed: http://en.wikipedia.org/wiki/Sed#In-place_editing
In short: sed -i 's/old/new/g' file
replaces all the occurrence of old
with new
in file
. The -i
flag tells it do it in-line, modifying the file itself.
In your code, seedvalue
and stepval
are nothing but two words in the text files wwd.nm.conf
and qsubScript.sh
. Those commands are replacing those words just as you'd do in your text editor or word processor.