every a few minutes a script gets the Master.csv and makes it a nice table for an html page. i would like to have it pre defined in the Master.csv the headers/titles of each column. that's what i was looking for. anyway your way looks nice. i will import it to my script prior to export to the html.
On Thu, Apr 26, 2018 at 5:00 PM, Ken D'Ambrosio <[email protected]> wrote: > On 2018-04-26 09:49, John Tuxies wrote: > >> Hi. i am looking for a way to have headers for each section of the >> Master.csv >> eg call duration, hangup cause, destination,... >> is there a way to add it and be there permanently, even after log >> roratation due to size or date, please? >> > > That's easy: no. ;-) But, less-snarkily, that's the kind of thing that > scripting is made for. Clearly, you're looking to import it into > spreadsheet. In your shoes, I'd set up a file with *just* the headers, and > then when you wanted a CSV for import, do something like this: > > cat heaerfile.txt master.csv > file_to_import.csv > > And lo! Done. > > -Ken > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
