DeadAIM to GAIM log format?

Zeitgeist
2004-10-14
2013-01-14
  • Zeitgeist
    Zeitgeist
    2004-10-14

    Hi.

    I was hoping there was a perl or batch script or something that could convert DeadAIM logs to GAIM format.

    The formats are pretty similar if you use HTML logging, the only difference is a small part of the filename.

    DeadAIM stores logs in logs/username/screennameoftalkingto

    and Gaim is the same thing.

    However, with regards to filenames.

    DeadAIM is: 2004-03-07 [Sunday].htm
    so that is YEAR-MONTH-DAY [DOW].htm well GAIM has time insead of day of week.

    Anyway, long story short I was hoping someone has done this :)

     
    • Zeitgeist
      Zeitgeist
      2004-10-18

      ?????

       
      • Zeitgeist
        Zeitgeist
        2004-11-30

        hey answer me i need help

         
    • Try this in every directory:
      rename -v 's/ *\[.*\]/.000000/' *

       
    • J Coder
      J Coder
      2005-06-14

      Well, I was searching for this too, and didn't find anything, so I wrote this.  Maybe it will be helpful from someone else. My DeadAIM logs are from a while ago, so not sure if the logs are still the same.  you should only need standard unix utils. just run:

      deadaim2gaim <path to screenname> and it should convert all the screenname folders in it

      #!/bin/sh
      # deadaim2gaim: Convert DeadAIM logs to Gaim log format

      test -n "$1" && cd "$1"
      find -name "events.txt" -exec rm \{\} \;
      find -name "fmt" -exec rm \{\} \;
      for di in *; do
             sdi="$( echo "$di" | sed 's/ //g' | tr 'A-Z' 'a-z' )"
              if [ "$di" != "$sdi" ]; then
                      # remove annoying duplicates:
                      [ ! -d "$sdi" ] && (rm -rf "$sdi" &>/dev/null; mkdir "$sdi")
                      cp -r "$di"/* "$sdi" &>/dev/null
                      rm -r "$di" &>/dev/null
              fi

              for fi in "$sdi"/*; do
                      newfi="$( echo "$fi" | sed 's/^\(.*\) \[.*\]\.htm/\1\.000000\.html/g' )"
                      [ "$fi" != "$newfi" ] && mv "$fi" "$newfi"
              done
      done

       
    • David Grohmann
      David Grohmann
      2005-07-18

      I wrote a howto for converting deadaim logs to gaim logs

      http://wiki.ehow.com/Convert-Deadaim-Logs-Into-Gaim-Logs

      unfortunately its not very leet, since I used gui tools only.

       
    • BaselineAce
      BaselineAce
      2005-07-23

      What about AIMutation logs?