ratox-nuggets

useful ratox related scripts
git clone git://git.2f30.org/ratox-nuggets.git
Log | Files | Refs | LICENSE

commit 05077bf6a6ad44ed82a5a0f82f07a3bfdccfb663
parent ccbf3d46207ec5d4af39b20c7035b88a91556785
Author: sin <sin@2f30.org>
Date:   Fri Oct 10 12:55:57 +0100

Rename ratox-textout to rat-textout

Diffstat:
rat-textout | 15+++++++++++++++
ratox-textout | 15---------------
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/rat-textout b/rat-textout @@ -0,0 +1,15 @@ +#!/bin/sh +test x"$1" = x"" && exit 1 + +idstr="$1" +textout="${idstr}/text_out" +textin="${idstr}/text_in" +history="${idstr}/history" +namefile="name/out" + +touch "${history}" +sob | tee -a "${history}" "${textin}" | while read -r msg; do + name=$(cat "${namefile}") + test x"$name" = x"" && name="Anonymous" + printf '%s : %s < %s\n' "`date +'%Y-%m-%d %H:%M'`" "${name}" "${msg}" >> "${textout}" +done diff --git a/ratox-textout b/ratox-textout @@ -1,15 +0,0 @@ -#!/bin/sh -test x"$1" = x"" && exit 1 - -idstr="$1" -textout="${idstr}/text_out" -textin="${idstr}/text_in" -history="${idstr}/history" -namefile="name/out" - -touch "${history}" -sob | tee -a "${history}" "${textin}" | while read -r msg; do - name=$(cat "${namefile}") - test x"$name" = x"" && name="Anonymous" - printf '%s : %s < %s\n' "`date +'%Y-%m-%d %H:%M'`" "${name}" "${msg}" >> "${textout}" -done