![]() |
|
|
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 |
| Concatenating Text Files | 222001459 | UNIX for Dummies Questions & Answers | 5 | 05-05-2009 09:52 AM |
| concatenating strings.. | jt_csv | Shell Programming and Scripting | 2 | 02-07-2007 10:09 PM |
| Concatenating Strings | radhika03 | Shell Programming and Scripting | 2 | 09-09-2005 03:48 AM |
| concatenating x files into a one... | Nicol | UNIX for Dummies Questions & Answers | 1 | 09-30-2004 09:13 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
FILE_DATE=$(date +"%Y%m%d_%H%M")_
FILE_PREFIX=${FILE_DATE} echo $FILE_PREFIX JS_LOG_DIR="E:\DecisionStream Jobs\Invoice Balance Fact Jobs" echo $JS_LOG_DIR --This is where the problem surfaces. The last line of this script does a rsh to an NT machine and one of the parameters is the variable $LOG_FILE_NM. I am attempting to pass an NT folder name to my NT job. However getting the backslash to work at the end of the variable JS_LOG_DIR is not easy! If I put a space after the backslash, it works - but I don't want a space after it. LOG_FILE_NM="${JS_LOG_DIR}\${FILE_PREFIX}JS_FACT_INVOICE_BALANCES.log" echo $LOG_FILE_NM Here's the results: 20030416_1633_ E:\DecisionStream Jobs\Invoice Balance Fact Jobs E:\DecisionStream Jobs\Invoice Balance Fact Jobs${FILE_PREFIX}JS_FACT_INVOICE_BALANCES.log I need for this to look like: E:\DecisionStream Jobs\Invoice Balance Fact Jobs\20030416_1633_JS_FACT_INVOICE_BALANCES.log |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|