Subj : Random Taglines To : Dan Richter From : mark lewis Date : Tue Mar 19 2019 02:09:44 On 2019 Mar 18 17:25:58, you wrote to me: ml>> is it time for me to run my script and post my list which now ml>> contains 12374 taglines? i don't recall what it had when i last ml>> posted it on 2016 Jul 16... a quick search seems to indicate there ml>> were 12059 in it at that time... each post was a max of 500 lines... DR> I was thinking about setting up a script as well. My list, right now, DR> has 51305. I've been trying to get rid of some dupes though... if you're on linux, you might find this li'l script handy... it sorts the taglines and removes the duplicates... just tell it the name of the file containing the taglines... it expects the file to have a .txt extension... the results are output into filename.sorted.uniq.txt so you don't lose the original until you're ready to remove/overwrite it... the script is 26 lines long... i'm pretty sure wordwrap will bite and need to be corrected... ==== Begin "sorttaglines" ==== #! /bin/sh printf "\n" printhelp() { printf "just tell me the file name to sort. the extension must be txt.\n" printf "\n" printf "eg: sorttaglines alltags\n" exit } case "$1" in "" ) printf "ERROR: no filename given.\n"; printhelp;; esac if [ ! -e $1.txt ] then printf "ERROR: file $1.txt not found.\n" printhelp else printf "$(wc -l $1.txt | cut -d" " -f1) lines in $1.txt\n" sort -n $1.txt | uniq > $1.sorted.uniq.txt printf "$(wc -l $1.sorted.uniq.txt | cut -d" " -f1) lines in $1.sorted.uniq.txt\n" fi printf "\n" ==== End "sorttaglines" ==== )\/(ark Always Mount a Scratch Monkey Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong... .... Friendly advice has cost many a person a friend. --- * Origin: (1:3634/12.73) .