2 comments

[ 2.6 ms ] story [ 12.4 ms ] thread
From TFA:

  grep '[[:punct:]]$' files
I suspect the author has grep aliased to `egrep` or `grep -E` because [:punct:] is an extended regular expression and GNU grep defaults to basic RE mode.