The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
replacing spaces with null or 0 in the input 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
:
replacing spaces with null or 0 in the input file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
01-06-2009
cfajohnson
Shell programmer, author
Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,378
Code:
sed
-e 's/||/|null|/g' -e 's/||/|null|/g' FILE
cfajohnson
View Public Profile
Visit cfajohnson's homepage!
Find all posts by cfajohnson
Find cfajohnson's past nominations received
Find cfajohnson's present nominations given