ich habe hier eine Datei dieser Form:
wort1
wort2
wort3
usw.
und möchte sie in eine solche transformieren:
"wort1|wort2|wort3|usw."
Wie geht das am einfachsten?
Danke,
David
tr '\n' '|' < Datei
--
usingwhitespaceisracism
lG,
Reinhard
Ich helfe mir in aller Regel mit einer Schleife:
while read zeile; do
printf '%s|' "$zeile"
done < datei
printf '\n'
Michael
awk '{print;}' ORS="|" DeinFile > Einzeiler
-dnh
--
panic("ocfs2 is very sorry to be fencing this system by panicing\n");
-- /usr/src/linux/fs/ocfs2/cluster/quorum.c