News for hackers. Stuff that matters.
Re:Posix Has Become Outdated (2016) [pdf] by hawski on Saturday February 11, 2017 @01:21PM (#13623882)
You probably could use process substitution to get rid of the temp file:

  comm -12 Whitelist <(ag MyString | awk -F: '{print $1}' | sort | uniq) > Output
Then you could use unique flag of sort:

  comm -12 Whitelist <(ag MyString | awk -F: '{print $1}' | sort -u) > Output
Also ag can list only matching files (getting rid of awk and unique):

  comm -12 Whitelist <(ag -l MyString | sort) > Output
Re:Posix Has Become Outdated (2016) [pdf] by umanwizard on Saturday February 11, 2017 @01:48PM (#13624054)
Thanks for the tips!