![]() |
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 |
| trim fields using sed | stonemonolith | Shell Programming and Scripting | 3 | 02-23-2009 04:16 PM |
| trim lines | melanie_pfefer | Shell Programming and Scripting | 6 | 03-26-2008 07:25 AM |
| trim file | tungaw2004 | UNIX for Dummies Questions & Answers | 1 | 09-15-2007 06:05 AM |
| trim letters | fed.linuxgossip | Shell Programming and Scripting | 10 | 05-15-2007 10:11 PM |
| Trim | JWilliams | Shell Programming and Scripting | 4 | 04-24-2007 02:52 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
another trim question using tr
Hi all,
I've been looking for how to eliminate blank spaces in a variable or strings. I've seen several ways, using sed, awk and even python. One of them is use 'tr' command, but it does not work as I expected: For example: Code:
echo " stuff " | tr -s " " I also tried Code:
echo " stuff " | tr -d " " I'd like to know why. Thanks a lot. Albert. |
![]() |
| Bookmarks |
| Tags |
| trim |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|