Struggling to format the following
I'm trying to get each record on one line and delimit each field with {
running this twice joins the lines
awk '/^[0-9]/{printf ("%s",$0);next}
1 < /tmp/input > output1
then try sed to remove spaces. Anyone got a tidy way?
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
Code:
Field 1 Field 2 Field 3
|-----------------| |--------------------| |-------------|
Field 3
|----------------------------------------|
Field 3
|----------------------------------------------------|
01/21/2007 22:44:45 servername subserver dfdddfdfdfdfdf
dfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfd
dfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfdfd
I'm trying to get each record on one line and delimit each field with {
running this twice joins the lines
awk '/^[0-9]/{printf ("%s",$0);next}
1 < /tmp/input > output1
then try sed to remove spaces. Anyone got a tidy way?
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."