![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change of directory thru script | shiningram | Shell Programming and Scripting | 4 | 03-29-2007 03:30 AM |
| Change Directory via a script? | George Borrmann | Shell Programming and Scripting | 3 | 10-09-2006 08:13 PM |
| script to ftp file (ip change) | happyv | Shell Programming and Scripting | 2 | 09-19-2006 03:50 AM |
| Help with multiple file rename - change case of part of file name | steve7 | UNIX for Dummies Questions & Answers | 7 | 06-30-2005 01:41 PM |
| How do I change users in a script??? | chorgan | Shell Programming and Scripting | 2 | 02-15-2002 11:53 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
script to change value in file
Hi,
I have a parameter file and it contains following items $ cat TransactionParams From_Date_Parm=2005-02-25 To_Date_Parm=2005-05-25 Extract_Root_Parm=/detld1/etl/ascential/Ascential/DataStage/Projects/CTI_London/IAM Extract_Type_Parm=Transaction EDW_Database_Parm=hdw_erks EDW_User_Parm=t449206 FTP_Path_Parm=/detld1/etl/ascential/Ascential/DataStage/Projects/CTI_London/IAM/ftp/ FTP_User_Parm=t449207 FTP_Password_Parm=Magdog,123 Date_Run_Parm=06042005 Sequence_ID_Parm=1 Daily_Sequence_Parm=1 ParameterFileParm="nothing" Send_FTP_Parm=Y What i should do is i need to write a script which should search for systemtime (based on the time we run) and if it is less than 12'0 clock from From_Date_Parm should be replaced with sysdate - 1 (2005-06-20) and To_Date_Parm as sysdate (2005-06-21) else if it is greater than 12 and less than 24 then From_Date_Parm = sysdate (2005-06-21) How can i change the appropriate values using script. I am new to unix and i want the code which does the corresponding job. Thanks in advance. cheers, gops |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|