![]() |
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 |
| Replacing leading zeros with leading spaces | deepakwins | UNIX for Dummies Questions & Answers | 5 | 06-18-2008 02:06 AM |
| remove leading spaces from a line | lijojoseph | Shell Programming and Scripting | 6 | 03-17-2008 05:29 AM |
| Stripping leading spaces on right justified name | Marcia P | UNIX for Dummies Questions & Answers | 2 | 02-28-2006 10:32 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 |
| Leading and Trailing Spaces | sleepster | Shell Programming and Scripting | 7 | 10-29-2003 11:48 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Leading spaces of variable removed
Code:
#!/bin/bash TESTVAR=" 5spaces" echo $TESTVAR Code:
hostame:~# ./test.sh 5spaces `echo -e` also fails. Any suggestions? |
|
||||
|
Works great. Thanks!
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| preserve leading spaces |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|