aboutsummaryrefslogtreecommitdiff
path: root/bin/80
diff options
context:
space:
mode:
Diffstat (limited to 'bin/80')
-rwxr-xr-xbin/8010
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/80 b/bin/80
index 9ab6fb4..31939cd 100755
--- a/bin/80
+++ b/bin/80
@@ -68,19 +68,19 @@ done
shift $((OPTIND - 1))
len() {
- awk '
+ awk -vNAME="$1" '
length > 80 {
- printf "%s:%s:%s\n", FILENAME, FNR, $0
+ printf "%s:%s:%s\n", NAME, FNR, $0
}
- ' "$1"
+ '
}
if [ $# = 0 ]; then
vcs ls | while read -r f; do
- len "$f"
+ expand "$f" | len "$f"
done
else
for f in "$@"; do
- len "$f"
+ expand "$f" | len "$f"
done
fi