LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2012, 05:24 AM   #16
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51

I will try the description property.

My "events" are 24 hour, but I think of them as a "thing of that day". Like holidays, for this matter. I do not wish to block other overlapping events in each of these dates, if this happens.

I tried to read a little bit in the RFC. I don't know what to choose, yet.

I have seen the category property. Can you make this an optional fourth column in the script? If it exists, use it. If it doesn't not, use a command line provided default, and if this also fails, use a default. Maybe with possibility of not generating this property.
 
Old 02-02-2012, 09:41 AM   #17
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by dedec0 View Post
I will try the description property.

My "events" are 24 hour, but I think of them as a "thing of that day". Like holidays, for this matter. I do not wish to block other overlapping events in each of these dates, if this happens.

I tried to read a little bit in the RFC. I don't know what to choose, yet.

I have seen the category property. Can you make this an optional fourth column in the script? If it exists, use it. If it doesn't not, use a command line provided default, and if this also fails, use a default. Maybe with possibility of not generating this property.
Few, if any, Calendar programs implement the entire RFC feature set.

Does Evolution allow you to set CATEGORIES in the GUI? They may be shown differently in the GUI from how they appear when you export to an ICS file. It will be the values shown in the ICS file which we need.
 
Old 02-02-2012, 10:07 AM   #18
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Does this work?
Code:
#!/usr/bin/awk -f

BEGIN {
    FS = "\t"
    print "BEGIN:VCALENDAR"
}

{
    print "BEGIN:VEVENT"
    print "SUMMARY:" gensub("\"", "", "g", $2)
    print "DESCRIPTION:" gensub("\"", "", "g", $3)
    split($1, array, "/")
    print "DTSTART:" array[3] array[2] array[1] "T000000"
    print "DURATION:PT24H"
    print "END:VEVENT"
}

END {
    print "END:VCALENDAR"
}
Call it by something like ./my_script.awk input.txt

If the output looks sane, try something like ./my_script.awk input.txt > output.ics and try importing output.ics into Evolution.
 
Old 10-09-2016, 07:20 AM   #19
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by catkin View Post
Good to know that something as simple as that worked. Now we are in a position to start developing the awk script to generate something like that from the CSV but it's late and I'm hungry and tired so no more from me today.

Meanwhile, could you try a DESCRIPTION as well as the SUMMARY? I'm thinking your third CSV field could go in it.
Some big and bad events in my life happened while I was in this thread. I do not remember exactly what I was trying to do back then. I will need a few more days to get it. But you can consider that I am still interested in that awk script!

Quote:
Originally Posted by catkin View Post
Will you be OK with all the DURATIONs being 24 hours?
Yes, I think I would have no problem with that in 90% of time, if not 100%. What is the reason that someone would not like it this way?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
inserting data into an existing file Magius363 Linux - Newbie 2 03-12-2008 07:10 PM
KsCD/Kaffeine are launched automatically when inserting CDs/DVDs dreamtheater Linux - Software 3 06-29-2007 01:29 AM
KsCD/Kaffeine are launched automatically when inserting CDs/DVDs dreamtheater Linux - Software 1 01-03-2006 07:23 AM
inserting data in mysql zuessh Linux - Software 4 05-19-2003 01:00 PM
MySQL - Inserting Data Not Happening! Rhapsodic Programming 4 10-26-2002 10:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration