peteg's blog - noise - blogging - 2006 08 04 PLogHacks

Hacks for the shift.

/noise/blogging | Link

Showing how rusty my 37337 sh skills are, here's some things that help to migrate PLog entries to Blosxom:

  • Make PLog entries into Blosxom ones:
    for file in *; do mv $file $file.txt; done
  • ... but before that, get blosxom's idea of the date for an entry to match PLog's:
    for file in *; do echo $file |
       touch -t `sed -n "1s/\(....\).\(..\).\(..\)/\1\2\30000/p;"` $file;