diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-10-09 14:25:27 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-10-09 15:57:46 -0400 |
| commit | 6ccd1b82b2eb316fd95bbf9333cc5ed5809b509a (patch) | |
| tree | 9a7c62f972ff403341fb441fe890bf9d6d667a87 /firstComplete.sh | |
| parent | 78b9951650925c50bc9e54030aa63b400ef7bcb1 (diff) | |
| download | swipeGuess-6ccd1b82b2eb316fd95bbf9333cc5ed5809b509a.tar.gz | |
scripts: try to make them pipe together better
it's important that the input program flushes the output
Diffstat (limited to 'firstComplete.sh')
| -rwxr-xr-x | firstComplete.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
