{"id":2303,"date":"2004-11-01T13:26:30","date_gmt":"2004-11-01T13:26:30","guid":{"rendered":"http:\/\/www.soulhuntre.com\/items\/date\/2004\/11\/01\/fun-with-the-shell\/"},"modified":"2004-11-01T13:26:30","modified_gmt":"2004-11-01T13:26:30","slug":"fun-with-the-shell","status":"publish","type":"post","link":"http:\/\/legacyiamsenseiken.local\/2004\/11\/01\/fun-with-the-shell\/","title":{"rendered":"Fun with the shell…"},"content":{"rendered":"
Ok… so I had to delete a lot of spam from one of our Linix servers. I needed to…<\/p>\n
So here is the first part…<\/p>\n
\n.\/qmHandle -l | grep Subject | sort | uniq -c | sort -nr | more<\/p>\n<\/blockquote>\n
That works for anything of course, any source of lines. It isn’t particularly cleaver. However, as I nuked the lines I realized maybe I could do a simple count of words and get a better idea of “trigger” words. How to turn that list of lines to a list of words? Thanks to “tr” of course.<\/p>\n
\n.\/qmHandle -l | grep Subject | tr ‘ ‘ ‘n’ | sort | uniq -c | sort -nr | more<\/p>\n<\/blockquote>\n
So there you have it, a list of the most common words. Obviously it is rough, but it worked for me.<\/p>\n","protected":false},"excerpt":{"rendered":"
Ok… so I had to delete a lot of spam from one of our Linix servers. I needed to… get a list of active subject lines count unique subject lines \/ words sort that list in descending order So here is the first part… .\/qmHandle -l | grep Subject | sort | uniq -c | […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"footnotes":""},"categories":[278],"tags":[],"_links":{"self":[{"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/posts\/2303"}],"collection":[{"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/comments?post=2303"}],"version-history":[{"count":0,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/posts\/2303\/revisions"}],"wp:attachment":[{"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/media?parent=2303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/categories?post=2303"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/tags?post=2303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}