you can convert the str into int before the addition using int()
bash don't do floats. and why do you want to do double checking of threshold when you have already done it in awk? uptime | awk -v max="0.05"...
assign a variable to it, just like you did variable=$(uptime | awk -v max="2" '$NF>max{ print $NF}')
uptime | awk -v max="2" '$NF>max{ print "Threshold reached" }'
with awk awk '!/AREA/{print}' "file" > newfile mv newfile file with sed sed -i '/AREA/d' file
you escape the slashes... sed -e "s/images/http:\/\/cache.somewebsite.com\/images/" file
you can use awk awk -v file="Prac1" ' BEGIN { # get all sids of Prac1 into array while( (getline line < file )>0 ) { if (line ~...
you are using perl, and then you are using other OS tools like more and cut. this is overkill. in perl , you can split your string eg perldoc -f...
Separate names with a comma.