The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Separate lines in a single '|' separated line
.
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
:
Separate lines in a single '|' separated line
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
03-17-2008
aajan
Registered User
Join Date: Jun 2007
Posts: 80
Hope this should work !!!!!!!!!!!!!!!!!!!!!!!
AWk:
cat filename | awk '{printf "%s|",$0}'
or more simpler one using tr command
cat filename | tr '\n' '|'
Regards,
aajan
aajan
View Public Profile
Find all posts by aajan
Find aajan's past nominations received
Find aajan's present nominations given