The UNIX and Linux Forums  


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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-28-2008
siba.s.nayak siba.s.nayak is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 166
In my machine cat -s do nothing. The output is same as simply cat.

Te second one is doing fine in linux machine but not in HP-UX (When the no of characters in the line is more, say 1000 ).




Quote:
Originally Posted by ripat View Post
If you have that option with cat:

Code:
cat -s

With sed:

Code:
sed '/./,/^$/!d'