![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delete an empty file from dir. | Script40 | Shell Programming and Scripting | 2 | 04-02-2008 02:09 PM |
| display no of empty lines | atticus | Shell Programming and Scripting | 5 | 03-22-2006 11:35 AM |
| delete multiple empty lines | whatisthis | Shell Programming and Scripting | 3 | 11-09-2005 01:42 PM |
| cat and empty lines | Nicol | Shell Programming and Scripting | 4 | 11-13-2003 05:19 AM |
| how to delete empty files in a shell script | rpnuge | UNIX for Advanced & Expert Users | 1 | 07-11-2002 01:56 PM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
How to delete empty lines
abc#
abc#this is a test abc#this is a test to delete abc# xyz# xyz#this is a test two xyz# In the above example '#' is common. How to do delete the emply lines. In specific to observe the output as: abc#this is a test abc#this is a test to delete xyz#this is a test two . . . . |
| Forum Sponsor | ||
|
|
|
|||
|
one more
Code:
grep -v "#$" filename |
|||
| Google UNIX.COM |