Conversor de Celsius para Farenheit e vice-versa...
Esse é só de frescura, mesmo...
Mas se alguém quiser...
Simplesmente converte de Celsius para Farenheit ou o contrario...
[elias@pingum ~]$ ./cvcf.sh fc 100
100 F = 37.77 C
[elias@pinguim ~]$ ./cvcf.sh fc 32
32 F = 0 C
Mas se alguém quiser...
Simplesmente converte de Celsius para Farenheit ou o contrario...
[elias@pingum ~]$ ./cvcf.sh fc 100
100 F = 37.77 C
[elias@pinguim ~]$ ./cvcf.sh fc 32
32 F = 0 C
Descrição
Esse é só de frescura, mesmo...
Mas se alguém quiser...
Simplesmente converte de Celsius para Farenheit ou o contrario...
[elias@pingum ~]$ ./cvcf.sh fc 100
100 F = 37.77 C
[elias@pinguim ~]$ ./cvcf.sh fc 32
32 F = 0 C
Mas se alguém quiser...
Simplesmente converte de Celsius para Farenheit ou o contrario...
[elias@pingum ~]$ ./cvcf.sh fc 100
100 F = 37.77 C
[elias@pinguim ~]$ ./cvcf.sh fc 32
32 F = 0 C
Versões atualizadas deste script
#!/bin/bash [ "$1" = "cf" ] && echo "$2 C = $(echo "scale=2;($2*9/5)+32" | bc) F" [ "$1" = "fc" ] && echo "$2 F = $(echo "scale=2;($2-32)*5/9" | bc) C" # Soh isso! ;)
E o mais sem noção... huehuehue...
Abraços...
EJ