![]() |
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 |
| Remove extra spaces in a line | vikas027 | Shell Programming and Scripting | 6 | 10-10-2008 10:07 AM |
| Remove Trailing spaces after a delimiter | kiran_418 | UNIX for Dummies Questions & Answers | 1 | 04-29-2008 02:19 PM |
| How to remove trailing spaces | mahek_bedi | UNIX for Dummies Questions & Answers | 2 | 08-10-2007 07:21 AM |
| Trim trailing spaces from each line in a file | tipsy | Shell Programming and Scripting | 5 | 09-13-2006 05:48 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 |
|
||||
|
If your sed version doesn't support the POSIX Character Classes you can use a space and a \t within the square brackets:
Code:
sed 's/[ \t]*$//' Code:
sed 's/[ ]*$//' Last edited by Franklin52; 11-17-2008 at 09:26 AM.. |
|
||||
|
thnx a lot buddy
|
| Sponsored Links | ||
|
|