![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| deleting a line but keeping the same file | laiko | UNIX for Dummies Questions & Answers | 2 | 05-13-2008 11:08 AM |
| Deleting end of line $ character in file | bwrynz1 | UNIX for Advanced & Expert Users | 3 | 01-08-2008 10:17 AM |
| Deleting Junks at the end of each line in a file | dave_nithis | UNIX Desktop for Dummies Questions & Answers | 5 | 10-04-2007 11:51 PM |
| Trim trailing spaces from each line in a file | tipsy | Shell Programming and Scripting | 5 | 09-13-2006 02:48 AM |
| Deleting all content in a file from command line | kingdbag | UNIX for Dummies Questions & Answers | 2 | 07-20-2006 04:00 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Deleting end line spaces for along file
How can i clear all space characteres for a long file at the end of each line?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
sed -e 's/[ ]*$//g' file
|
|
#3
|
||||
|
||||
|
Code:
sed 's/[ ^t]*$//' file1 > file2 Last edited by bhargav; 02-23-2005 at 10:51 AM. |
|
#4
|
|||
|
|||
|
Great!!!! thank you very much...
|
|||
| Google The UNIX and Linux Forums |