Browse Source

Add grep to fix missing newline

Alois Mahdal 6 years ago
parent
commit
2b96e2d4da
1 changed files with 7 additions and 6 deletions
  1. 7
    6
      bin/dissect_url

+ 7
- 6
bin/dissect_url View File

@@ -18,12 +18,13 @@ main() {
18 18
     test -n "$Url" \
19 19
      && dissect \
20 20
      && return 0
21
-    while read -r Url;
22
-    do
23
-        ((i++))
24
-        printf '=== url %02d =============================================\n' $i
25
-        dissect
26
-    done
21
+    grep . \
22
+      | while read -r Url;
23
+        do
24
+            ((i++))
25
+            printf '=== url %02d =============================================\n' $i
26
+            dissect
27
+        done
27 28
 }
28 29
 
29 30
 main "$@"