| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Random Taglines |
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)SEEN-BY: 14/5 15/0 19/36 34/999 90/1 104/57 116/18 120/331 123/140 153/7715 SEEN-BY: 218/700 220/60 222/2 229/426 230/150 152 250/1 261/38 100 266/512 SEEN-BY: 267/155 275/100 282/1031 1056 291/1 111 320/119 219 340/400 342/13 SEEN-BY: 396/45 633/0 267 280 281 412 640/1384 712/620 848 886 770/1 801/189 SEEN-BY: 2320/105 3634/12 5020/1042 @PATH: 3634/12 261/38 712/848 633/280 267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.