LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 1 of 1
Search took 0.02 seconds.
Search: Posts Made By: michaelk
Forum: Programming 02-14-2024, 09:02 AM
Replies: 18
Views: 406
Posted By michaelk
Another solution is bc. if [[ $(echo...

Another solution is bc.

if [[ $(echo "$voltage>200" | bc) ]]; then
echo "Less than 200"
gpio write 6 0
else
echo "greater than 200"
gpio write 6 1
fi
Showing results 1 to 1 of 1

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration