Quote:
Originally Posted by anandrhce
I need a script which will insert word "Dispatched" if its not present between job [ first line ] and Work [last line]
-----------------------------------------------
Job
$$$$$$$$$$$$$$$$$$$$$ [ symbols are file contents ]
##########################
Dispatched
Completed
####################
$$$$$$$$$$ Work
-----------------------------------------------
OR
if [ dispatched not present between Job and Work ] then insert a new line with word "dispatched"
|
Ok...you can easily write that script in any one of MANY languages. So post what you've written/tried so far, and tell us where you're stuck. But we're NOT going to write your scripts for you. We will be happy to help, but you do have to show some effort of your own.
There are MANY easily-found bash scripting tutorials, as well as sample code.