Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (12 sloc) 155 Bytes
#!/usr/bin/env bash
N=${1:-64}
awk -v N="$N" '
{
if(match($0,/^.+$/)) {
print sqrt($1*$1+$2*$2)/N;
}
else {
print $0
}
fflush();
}' -