Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 252 Bytes

Does Awk work in knitr?

We need to pass a file option to Awk.

# how many non-empty lines?
NF {
  i = i + 1
}
END { print i }