bash and operations

bash and decimal operations

If you need dealing with decimal operations, and linking to shell scripts, you can use the echo and bc tools:

bash-3.00$ UNO=1
bash-3.00$ DOS=2
bash-3.00$ echo "scale=2; $UNO/$DOS" | bc -l
.50
bash-3.00$

sed cleaning characters

If you need dealing with weird characters and linking to cleaning commands:

$cat test.txt
uno,dÇs,tres
uno,dos,tres
$cat test.txt | sed -e 's/dÇs/dos/'
uno,dos,tres
uno,dos,tres