< input.txt perl -lne 'while (/\[\[user([ _]talk)? *: *([^ \[\]\|]+)(\|[^ \[\]\|]+)?\]\]/gi) { print "user talk:$2"; }' | sort
| uniq > output.txt
Topic on Extension talk:MassMessage
Appearance
< input.txt perl -lne 'while (/\[\[user([ _]talk)? *: *([^ \[\]\|]+)(\|[^ \[\]\|]+)?\]\]/gi) { print "user talk:$2"; }' | sort
| uniq > output.txt