mirror of
https://github.com/FAUSheppy/config
synced 2025-12-09 16:18:33 +01:00
fix ip
This commit is contained in:
10
herbstluftwm/uniq_linebuffered.sh
Executable file
10
herbstluftwm/uniq_linebuffered.sh
Executable 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
|
||||
Reference in New Issue
Block a user