diff options
| author | sand <[email protected]> | 2009-09-23 13:00:46 (GMT) |
|---|---|---|
| committer | sand <[email protected]> | 2009-09-23 13:00:46 (GMT) |
| commit | 59322e6de7cc67f49e40507e7115a9831635b54c (patch) | |
| tree | b000af38302130eca74a6d5e4f32ca4f67c98c85 /scripts/fortune/fai.pl | |
| parent | ed7e054f8874ffc1ef7607aea6472c8381b7ae00 (diff) | |
script per generare un file fortune con le quote del bot
Diffstat (limited to 'scripts/fortune/fai.pl')
| -rwxr-xr-x | scripts/fortune/fai.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/fortune/fai.pl b/scripts/fortune/fai.pl new file mode 100755 index 0000000..9640958 --- a/dev/null +++ b/scripts/fortune/fai.pl @@ -0,0 +1,11 @@ +#!/usr/bin/env perl -w + +use strict; + +foreach my $line (<>) { + next if $line =~ /^\s*$/; + $line =~ s/\n//g; + $line =~ s/^quote = //; + $line =~ s/(?<!^)\<[^\>]+\>/\n$&/g; + print "${line}\n%\n"; +} |

