The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
replace a newline (\n)
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
replace a newline (\n)
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-16-2008
ilan
Registered User
Join Date: Jul 2007
Posts: 74
sed s/^$/NA/g file
you can always redirect the o/p to a new-file.
-ilan
ilan
View Public Profile
Find all posts by ilan