![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | 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 !! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| kernel parameter values | mhbd | UNIX for Dummies Questions & Answers | 1 | 03-21-2008 03:50 AM |
| How to read values that are passed to the shell function in ksh. | prashant43 | Shell Programming and Scripting | 2 | 01-22-2008 07:21 AM |
| manipulate a passed in parameter | rudoraj | Shell Programming and Scripting | 2 | 06-11-2007 10:04 AM |
| Parameter Checking | ammu | Shell Programming and Scripting | 1 | 05-23-2007 10:24 AM |
| Capturing the values of column in one parameter | mgirinath | Shell Programming and Scripting | 5 | 06-14-2006 10:43 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
checking parameter values passed to script
Hi,
I will pass 3 parameters for a script.I have to check the file name and create a new file name with time stamp. the parameters which i'm passing are /dir/stg/filename.txt /dir/path/head.txt /dir/path/tail.txt Now i have to check filename like : if it is a.txt i have to create a_`date '+%Y%m%d_%H%M%S'`.txt if it is b.txt the new file should be b_`date '+%Y%m%d_%H%M%S'`.txt How can we do this with in a script. Thanks in advance! |
| Forum Sponsor | ||
|
|