venta de cialis generico cialis suomi commander viagra generique acheter viagra femme acheter cialis en angleterre viagra contrassegno cialis benelux vente de viagra en espagne viagra masticabile italia cialis prezzi farmacia comprar viagra en españa viagra kjøp viagra zu verkaufen precio cialis farmacia levitra bayer 10 mg
commande viagra 
forum vente viagra ligne 
levitra prix en pharmacie 
achat levitra quebec 
kamagra vente 
tadalafil pas cher 
kamagra sousajours 
prix viagra andorre 
acheter du cialis le moins cher 
acheter silagra 100 
citrate de sildenafil 
acheter cialis mg pills 
cialis en vente 
acheter levitra moins cher 
acheter viagra en pharmacie 
canadian pharmacy propecia cialis drug cheap finasteride without a prescription cheapest viagra online kamagra tablets viagra otc kamagramg oral jelly usa cialis cost per pill finasteride cipla priligy bamazon cheapest generic viagra cialis lowest price finasteride for sale generic propecia walmart cialis best price

Bash or Ruby for removing multiple Trac Spam Tickets

I had to clean up a public Trac ticket db where anonymous tickets are allowed. I had to issue commands like this:

trac-admin . ticket remove 58

I keep forgetting the shell syntax for doing a loop over numbers. But actually a ruby script was just right for the task:

ruby -e "(49..75).each{|i| %x(sudo -u www-data trac-admin . ticket remove #{i})}"

This shows some of my reasons to love Ruby: Very intuitive syntax. And faster than to lookup bash syntax.

2 Responses to “Bash or Ruby for removing multiple Trac Spam Tickets”

  1. Robert J Lowe Says:

    Haha, nice, happy nuking those trac tickets, spam is getting crazy these days.

  2. Damien Says:

    Indeed ruby is very easy to use for that. So I thought you may be interested in the ruby shell called Rush, you can find it there:

    I’ve not tried it yet, but it sure sounds interesting. :)