![]() |
|
|
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 |
| how to append spaces(say 10 spaces) at the end of each line based on the length of th | prathima | UNIX for Dummies Questions & Answers | 17 | 01-28-2009 04:10 PM |
| Unix filenames and spaces | x96riley3 | Shell Programming and Scripting | 2 | 01-31-2007 07:07 PM |
| VARIABLE HANDLING in UNIX | VENC22 | UNIX for Dummies Questions & Answers | 1 | 05-28-2005 07:31 AM |
| File handling in UNIX | VENC22 | UNIX for Dummies Questions & Answers | 4 | 05-18-2005 03:29 AM |
| Strip leading and trailing spaces only in a shell variable with embedded spaces | jerardfjay | Shell Programming and Scripting | 6 | 03-07-2005 02:24 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I am testing a ksh script for email. In the script I receive several parameters. One of them is a subject. The subject may contain spaces. Ex. Test this. When I am running the script on telnet to test, how should the syntax at the command line be written. I have this:
ksh ResendE.sh '001111' '000001' 'christest.WDA.001111.000001. 'WDA' '01-NOV-01' '01-NOV-01' 'christest.WDA.001111' "" "" 'this subject' 'destintion' this command believes the subject is blank. If I use double quotes I get the same results as I did from using single quotes. Can this be accomplished? |
|
|||||
|
Also, you can add a "\" before each space, for example:
This\ is\ the\ subject Also, if your shell allows it, you could set the IFS equal to something else, like the ":" character... YMMV since I did not test this before posting. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|