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 -->
#
1
(
permalink
)
03-17-2008
hidnana
Registered User
Join Date: Feb 2008
Posts: 14
Separate lines in a single '|' separated line
Hi
I have a file with contents like
china
india
france
japan
italy
germany
.
.
.
.
etc....
I want the output as
china|india|france|japan|italy|germany|.|.|.
How to achieve this ?
hidnana
View Public Profile
Find all posts by hidnana
Find hidnana's past nominations received
Find hidnana's present nominations given