Technical logs..

Archive for December 2011

Copy all events to next year in Google Calendar

leave a comment »

I wanted to copy all events to next year in Google Calendar. I know a more efficient way to do this is set them to ‘repeat’ annually but the calendar I had didnt have that and I wanted to avoid editing each event manually.

Thanks to Susan‘s comment on the post here. There’s a pretty neat (and indirect) way to do that!

Export the calendar to ics file. Open it in wordpad and replace all DTSTART;VALUE=DATE:2011 with DTSTART;VALUE=DATE:2012. And the same with DTEND;VALUE=DATE:2010.

Save the file. Import it back and presto!



Written by techniclog

December 31, 2011 at 11:09 am

Posted in Tech

Working with large directories in AIX/UNIX

leave a comment »

I faced this strange issue today when an AIX directory contained more than 250000 files and I couldnt find an easy way to delete them.

ls or rm commands would return the error:  The parameter or environment lists are too long

My very dear friend and colleague suggested a way out and it worked. Here it is:

find . -name ‘http*’ -print -exec rm {} \;  

This script finds every file that matches http* (the files that I wanted to delete) and deletes them!

Written by techniclog

December 21, 2011 at 4:35 pm

Posted in Tech