![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Stripping a portion of string from behind!!! | kumarsaravana_s | UNIX for Dummies Questions & Answers | 5 | 03-18-2007 02:21 PM |
| Please Help!! Reading a string of text with concurrent spaces into a shell variable | mjs3221 | UNIX for Advanced & Expert Users | 1 | 08-16-2006 02:17 PM |
| Stripping leading spaces on right justified name | Marcia P | UNIX for Dummies Questions & Answers | 2 | 02-28-2006 10:32 PM |
| Variable has spaces around the string, need to remove them | mikey20 | Shell Programming and Scripting | 4 | 10-13-2005 08:09 PM |
| 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 |
|
|
|
||||
|
man tr, in particular the -s option
Also if you have a value in a variable, simply echoing it will normalize the spacing if you don't quote it (but this has other risks if the string value might contain special characters). |
![]() |
| Bookmarks |
| Tags |
| perl, vim |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|