From: Matthew Sammon (sammonm at domain tcd.ie)
Date: Tue 05 Oct 1999 - 18:17:00 IST
Hi,
Just a quick question:
How do I replace newlines with something else in multiple
files, preferably using awk or sed?
I need to replace:
FOO
: BAR
with:
FOO: BAR
I have tried using gsub(/\n:/,":"), gsub(/\n$:/,":"), gsub(/\n$^:/,":")
and gsub(/\n^:/,":") within an awk script, doesn't work tho.
TIA
Matthew
Matthew Sammon |
Yr2 CompSci TCD |
sammonm at domain tcd.ie |
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:40 GMT