uuooffice 185 B

12345678
  1. #!/bin/sh
  2. FILENAME=$(grep -Em 1 "^begin [0-7][0-7][0-7] ." "$1" | cut -d ' ' -f 3-)
  3. TMPFILE=/tmp/${0##*/}_$FILENAME
  4. uudecode -o - "$1" > "$TMPFILE"
  5. ooffice "$TMPFILE"
  6. rm -f "$TMPFILE"