![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Read the csv file and assign the values in to variable | rajbal | Shell Programming and Scripting | 11 | 06-27-2009 02:17 PM |
| how to check a word in a file and assign to a variable | hippo2020 | Shell Programming and Scripting | 1 | 06-28-2007 01:00 PM |
| search file for word, then assign to variable | dejit | UNIX for Dummies Questions & Answers | 2 | 03-06-2007 01:57 PM |
| assign value to variable using AWK | HAA | Shell Programming and Scripting | 4 | 12-06-2006 11:43 AM |
| How to Read a config file and Assign to Variable | redlotus72 | UNIX for Dummies Questions & Answers | 1 | 11-13-2006 12:14 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Assign value to a variable in a parameter 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 then 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 |
|
|