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 10:30 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
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
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
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 (permalink)  
Old 11-13-2003
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,223
grep . file
Reply With Quote
  #3 (permalink)  
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 (permalink)  
Old 11-13-2003
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,223
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 (permalink)  
Old 11-13-2003
Registered User
 

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

christian
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:04 AM.


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

Content Relevant URLs by vBSEO 3.2.0