The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-17-2008
vinna vinna is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 19
Help need in modifying the text of .txt file

Hi All,

I've written a shell script in which i defined two varibles

for example:

str=1.0.0.15
timeStamp=2008.03.08

now using this varibles i need to modify a text file.

The text content looks like this

************************
* packageNumber : 1.0.0.14 *
* date : 2008.02.08 *
************************

after executing the shell script, the text must look like this

************************
* packageNumber : 1.0.0.15 *
* date : 2008.03.08 *
************************


Could anybody help me in resolving this issue?

Thanks,
Vinna