From 74d27e041744099eaff920a4f053d49a9e490a00 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 24 May 2021 00:03:12 +0200 Subject: convert.sh: style changes --- convert.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/convert.sh b/convert.sh index a5373af..de68df4 100755 --- a/convert.sh +++ b/convert.sh @@ -1,6 +1,6 @@ #!/bin/bash -dirs='/srv/arch-mirror/arch/arch/archlinux32/irc-logs/' +dirs='/home/titus/irc-logs/' declare -A colors @@ -55,36 +55,36 @@ elif [ "$2" = 'html' ]; then sed -n ' /^/{ s@^(\([^)]\+\)) @\1 @ - /entered the room\.<\/b>$/{ - s@^\(\S\+\) \(.*\S\) \[.*] entered the room\.<\/b>$@\1 --> | \2 has joined '"${channel}"' @ + /entered the room\.<\/b>
$/{ + s@^\(\S\+\) \(.*\S\) \[.*] entered the room\.<\/b>
$@\1 --> | \2 has joined '"${channel}"' @ p d } / left the room /{ - s@^\(\S\+\) \(.*\S\) left the room (quit: \(.*\))\.

$@\1 <-- | \2 has quit (\3)@ + s@^\(\S\+\) \(.*\S\) left the room (\(quit: \)\?\(.*\))\.
$@\1 <-- | \2 has quit (\4)@ p d } / left the room\./{ - s@^\(\S\+\) \(.*\S\) left the room\.
$@\1 <-- | \2 has quit (Quit: \2)@ + s@^\(\S\+\) \(.*\S\) left the room\.
$@\1 <-- | \2 has quit (Quit: \2)@ p d } / is now known as /{ - s@^\(\S\+\) \(.*\S\)\s*
$@\1 -- | \2@ + s@^\(\S\+\) \(.*\S\)\s*
$@\1 -- | \2@ p d } d } \@
\*\*\*\S\+ @{ - s@^(\([^)]\+\)) \*\*\*\(\S*\) \(.*\)
$@\1 * | \2 \3@ + s@^(\([^)]\+\)) \*\*\*\(\S*\) \(.*\)
$@\1 * | \2 \3@ p d } //{ s@^(\([^)]\+\)) \(\S\+\): @\1 \2 | @ - s@
$@@ + s@
$@@ p d } -- cgit v1.2.3-54-g00ecf