/usr/share/elvis/scripts/wc.ex is in elvis-common 2.2.0-11.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | "This script defines a :wc alias, which counts words
alias wc {
"Count chars, words, and lines in the current file, or a given range of lines
local c=0 w=0 l=0 nolocked
!%g/^/ {
let l=l+1
let c=c+strlen(line()) + 1
try s/\w\+/let w=w+1/xg
}
calc c "chars," w "words," l "lines"
}
|