From 6ccd1b82b2eb316fd95bbf9333cc5ed5809b509a Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 9 Oct 2021 14:25:27 -0400 Subject: scripts: try to make them pipe together better it's important that the input program flushes the output --- firstComplete.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'firstComplete.sh') diff --git a/firstComplete.sh b/firstComplete.sh index 0a75e88..de13a92 100755 --- a/firstComplete.sh +++ b/firstComplete.sh @@ -1,3 +1,5 @@ #!/bin/sh -read -r word -sxmo_type.sh ${word:1} +type=wtype +while read -r word; do + test "${word:1}" && $type "${word:1}" +done -- cgit 1.4.1