The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: awk script
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 03-17-2008
rikxik's Avatar
rikxik rikxik is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 250
That's why you should always provide sample input and expected output while asking questions.


Code:
$ cat in.txt
mgr1.dbf
tool.dbf

usR.dbf
$
$ cat in.txt |awk '$0 !~ /^ *$/'
mgr1.dbf
tool.dbf
usR.dbf