This commit is contained in:
root
2017-11-02 15:57:32 +01:00
parent 9a0c714b28
commit 35bb9c696c
7 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/bash
if awk -Wv 2>/dev/null | head -1 | grep -q '^mawk'; then
uniq_linebuffered() {
awk -W interactive '$0 != l { print ; l=$0 ; fflush(); }' "$@"
}
else
uniq_linebuffered() {
awk '$0 != l { print ; l=$0 ; fflush(); }' "$@"
}
fi