Folk;
I'm writing Shell script to extract fields out of log file onto a new file (output file) which i'm going to export into Excel. My question is How can i add a field description to the extracted fields in the output file which i can open using Excel. so when i open it using Excel i can see the column names on the top.
for example:
let's say the results of the output file will be like this
07:27:2007 Moe John
moe@moe.com
where:
Moe: is the last person who viewed the page
John: Is the last person edited the page
moe@moe.com: is the e-mail for the last person viewed the field.
Now, I'd like the output of the extract to include the description of each field so when i open it using Excel i see on the top what's the field belong to. in other word, what can i add to the script to always include the description on the top of the results?
Thanks a lot folks.