dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 9204755362c3e7baedcab78033e65274f2fb7717
parent 4e60521e8266d97d414ee736ea493d7b8e4bb281
Author: Hayden Hamilton <hayden@haydenvh.com>
Date:   Tue,  3 Mar 2020 21:46:40 +0000

misc

Diffstat:
D.scripts/bin/misc/iiread | 29-----------------------------
D.scripts/bin/misc/iisend | 17-----------------
2 files changed, 0 insertions(+), 46 deletions(-)

diff --git a/.scripts/bin/misc/iiread b/.scripts/bin/misc/iiread @@ -1,29 +0,0 @@ -#!/bin/sh - -getout(){ - out=$(find . -type f -name "*out") -} - -refresh(){ - getout - for line in $out - do - name=$(echo "$line" | sed 's/out$//;s~/$~~;s~.*/~~') - awk "{print \"[$name] \" \$0}" < $line - cp $line /dev/stdout > $(echo "$line" | sed 's/out$/old/') - printf "" > $line - done -} - -quit(){ - read -n 1 -s var < /dev/tty - pkill iiread -} - -clear -quit & -while true -do - refresh - sleep 0.5 -done diff --git a/.scripts/bin/misc/iisend b/.scripts/bin/misc/iisend @@ -1,17 +0,0 @@ -#!/bin/sh - -getchan(){ - chans=$(find . -name "*in" | sed 's~/in$~~;s~.*/~~') - printf "$chans\n\n" -} - -while true -do - clear - getchan - printf "channel>>"; read var < /dev/tty - printf "message>>"; read var2 < /dev/tty - - channel=$(find -type d | grep "$var") - echo "$var2" > $channel/\in -done