The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
regex to delete multiple blank lines in a file?
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
regex to delete multiple blank lines in a file?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
10-11-2007
fedora
Registered User
Join Date: Jul 2006
Posts: 94
Tjhis is awesome!
Can you explain a little bit what the argument "1" does here?
Quote:
Originally Posted by
radoulov
Code:
awk 1 RS= ORS="\n\n" filename
Use nawk or /usr/xpg4/bin/awk on Solaris.
fedora
View Public Profile
Find all posts by fedora
Find fedora's past nominations received
Find fedora's present nominations given