Try following shell script
Code:
#!/bin/bash
INPUT="/path/to/file"
while read line
do
echo -n $line
done < $INPUT
You can also try tr
Code:
tr -d '\n\' < /path/to/file
Perl version
Code:
perl -e 'while (<>) { if (! /\|$/ ) { chomp; } print ;}' </path/to/input/file
GNU sed version (may not work with UNIX / BSD sed):
Code:
sed ':a;N;$!ba;s/\n//g' < /path/to/file
Use any one of the above method
