I am trying to get some data from a file and print it on the same line.
I have a script that gets the date/time and calculates a DB query call time and sends to a file. I need to take this file and send it in a xcel like format with multiple data columns.
example output file (fndbq.out)
01/11/08 10:29:05
Elapsed: 00:00:00.27
01/11/08 10:29:37
Elapsed: 00:00:00.29
01/11/08 10:30:08
Elapsed: 00:00:00.25
I need it to look like this
01/11/08 10:29:05 | Elapsed: 00:00:00.27
01/11/08 10:29:37 | Elapsed: 00:00:00.29
01/11/08 10:30:08 | Elapsed: 00:00:00.25
I am having trouble this isn't working as expected.......
#!/bin/sh
clm1= grep / fndbq.out
clm2= grep Elapsed fndbq.out
printf $clm1 | $clm2