Ceci est une ancienne révision du document !
Scripts
I was thinking it would be cool to have a section in Full Circle devoted to reader written scripts. What do you think?
I'll start off with one (above) that I use to check the exchange rate for different currencies. I call the script from a QuickList in Ubuntu's dock-like thing on the left.
John Niendorf
Clarification
I saw my letter titled Debian published on the last FCM issue, in the Letters section; thank you for giving me room, but I have a small claim on editing.
I understand that editorial requirements overtake what we readers write, so letters are edited and cut, but the editor has cut out too much: one phrase has, in the edited version, a completely different meaning from my intention.
I read in FCM#77 “But, big but, I find myself a bit confused when I see that Unity desktop environment.” but I wrote “But, big but, I find myself a bit confused when I see that Unity DE it's only Ubuntu while I've tested Gnome 3 over Ubuntu, Debian, Fedora and Opensuse”
My accent was on the fact that Unity is only on Ubuntu, and Gnome or XFCE is used by many distros. I did not want to deprecate in any way Unity or to express my confusion in using it.
Gabriele Tettamanzi
Code sur fond jaune :
#!/bin/bash #by GrouchyGaijin echo “This script is for getting the current exchange rate ” echo “I called it exrate.” read -p “Enter the symbol of the currency you want to go from: ” var1 read -p “Enter the symbol of the currency you want to go to: ” var2 read -p “Enter the amount you want to convert: ” var3
wget -q -O - “http://www.google.com/finance/converter?a=$var3&from=$var1&to=$var2”|grep “<div id=currency_converter_result>“|sed 's/<[^>]*>g' until false; do echo “Press R to run the script again or Q to quit. ” read x if [ “$x” = “R” ]; then exrate elif [ “$x” = “Q” ]; then echo “Going down” killall exrate break fi done