The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to delete empty lines Aejaz UNIX for Advanced & Expert Users 5 04-30-2008 07:27 AM
how to find empty folders without using -empty lasse UNIX for Dummies Questions & Answers 7 01-16-2008 11:30 PM
display no of empty lines atticus Shell Programming and Scripting 5 03-22-2006 12:35 PM
delete multiple empty lines whatisthis Shell Programming and Scripting 3 11-09-2005 02:42 PM
How will you list only the empty lines in a file (using grep) JosephGerard UNIX for Dummies Questions & Answers 1 07-21-2005 12:19 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-13-2003
Registered User
 

Join Date: Sep 2003
Location: Paris
Posts: 109
cat and empty lines

Hi ,

i'm searching for an easy solution to list a file without empty lines ,
i haven't found with cat and grep !

Anybody has an idea ?

thanks in advance

christian
Reply With Quote
Forum Sponsor
  #2  
Old 11-13-2003
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,249
grep . file
Reply With Quote
  #3  
Old 11-13-2003
Registered User
 

Join Date: Sep 2003
Location: Paris
Posts: 109
Thanks a lot !

What a wonderful forum !

Can you explain what is the meaning of the point in this case ?

christian
Reply With Quote
  #4  
Old 11-13-2003
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,249
Period

From man regexp ...
Quote:
A period (.), when used outside of a bracket expression, is a basic Regular Expression that matches any printable or nonprintable character except <newline>
Reply With Quote
  #5  
Old 11-13-2003
Registered User
 

Join Date: Sep 2003
Location: Paris
Posts: 109
Thanks for all

christian
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0