![]() |
|
|
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 |
| Problem with Trimming of white space | sandeep_1105 | UNIX for Dummies Questions & Answers | 1 | 03-04-2009 12:02 PM |
| How to trim the white space around a string in C program | hxm1303 | High Level Programming | 18 | 10-17-2008 11:43 AM |
| how to cut column that is not equally spaced by delimeters | johnray31 | Linux | 1 | 01-31-2008 06:53 AM |
| Two or more white spaces in string | harish_oty | Shell Programming and Scripting | 2 | 10-04-2006 04:29 AM |
| Sh scripting problem, matching specific white space | Dickalicious | Shell Programming and Scripting | 7 | 05-24-2006 02:30 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Consider a string with white space "abc 123"
string="abc 123" echo $string abc 123 sed "s/$string/$string 456/" file abc 123 456 cat file abc 123 OK for now, but if you put this one in a shell script it gives the result: abc 456 123 somehow string end in first white space ?? any idea why this happen ? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|