decided to stop once there is no input left
authorChris Koeritz <fred@gruntose.com>
Fri, 25 May 2018 23:16:40 +0000 (19:16 -0400)
committerChris Koeritz <fred@gruntose.com>
Fri, 25 May 2018 23:16:40 +0000 (19:16 -0400)
scripts/text/interactive_underscores_to_spaces.sh

index 2f122619dd9c6acca3e72dd997405fd076bf92b4..9d41452610b5b73f28b3103200325a56d7cd9984 100644 (file)
@@ -4,7 +4,7 @@ source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
 
 while true; do
   sep 14 
-  read line 
+  read line || break
   echo "< $line"
   echo "> $line" | sed -e 's/_/ /g'
 done