Using awk/sed to convert linefeed to csv, with some formatting
I have a file that looks like the one below, only much larger:
Code:
2009-02-20 I would like to change it like this: Code:
2009-02-20, "this is some text", 145, "sometimes numbers and text with spaces." Top line, always a date in that format. Middle line, text or numbers bottom line, always an integer, a space, then random text. I want to seperate the first number from the rest with a comma. The pattern and spacing is exactly like above. |
Using GNU sed
Code:
sed '/./ { |
All times are GMT -5. The time now is 12:06 PM. |