[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: IRC debate feedback



also sprach Peter Samuelson <peter@p12n.org> [2005.03.19.0827 +0100]:
> paragraphs cut off because of the limits of the medium.  (Pasting from
> #-replies irc logs or from a live client?  Per-candidate logfiles of
> #-replies?  Use of a text editor for collection / reformatting?  Etc.)

I used the following script, and ended up piping it through tools
I know better than perl, as shown at the end:

#!/usr/bin/perl -w

use strict;

while (<>) {
   s/^[[:digit:]:]{5} //;           # trim leading time
   s/^[[:space:]]*//mg;             # trim leading spaces
   s/^<[ +@]?([[:alnum:]_-]+)>//;   # convert nickname format
   chomp;                           # remove newlines
   s/\[/\n[/g;                      # reinsert newlines
   print;
}
print "\n";

# read NICK; perl debate-reply-trim.pl | fmt -w 350 \
# | sed -e "s,^,[$NICK]," | tr -s ' '

I am sure this can be majorly improved.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
"my father, a good man, told me:
'never lose your ignorance; you cannot replace it.'"
                                               -- erich maria remarque

Attachment: signature.asc
Description: Digital signature


Reply to: