diff options
author | Patrick Spek <p.spek@tyil.nl> | 2019-10-16 13:59:33 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2019-10-16 13:59:33 +0200 |
commit | 702f60eb68723cd984a6a4dd7a5c70e5bc3e3cb0 (patch) | |
tree | deaa0a86435bf6336225f8702167f6aaae6e1dcf | |
parent | f6ecdfb40fcb63f89961352362c2b3a3d00edf92 (diff) |
Update chomp to accept a filename as well
-rwxr-xr-x | .local/bin/chomp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/chomp b/.local/bin/chomp index faeb0c3..3641d50 100755 --- a/.local/bin/chomp +++ b/.local/bin/chomp @@ -2,7 +2,7 @@ main() { - awk '{$1=$1};1' < /dev/stdin + awk '{$1=$1};1' < "${1:-/dev/stdin}" } main "$@" |