Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

square root in bash script

read -p "Enter a number: " number
square_root=`echo "scale=4; sqrt($number)" | bc`
echo "Square Root of $number is $square_root"
Comment

PREVIOUS NEXT
Code Example
Shell :: install windows service 
Shell :: ubuntu run in port 80 
Shell :: git clone specific branch 
Shell :: github remote permisiion denied on git push 
Shell :: git clone in current directory 
Shell :: wkhtmltopdf blocked access to file 
Shell :: head of zipped file 
Shell :: run pm2 in cluster mode 
Shell :: windows 10 sfc scan 
Shell :: grep recursive file extension 
Shell :: install composer by cmd 
Shell :: Failed to install the following Android SDK packages as some licences have not been accepted. 
Shell :: apache start stop restart 
Shell :: delete all files in linux 
Shell :: cp bash 
Shell :: renaming heroku remotes 
Shell :: linux redirect everything (stdout and stderr) to file 
Shell :: brew in mac 
Shell :: grafana docker 
Shell :: how to install mongodb server in ubuntu 
Shell :: what service is listen on what port linux 
Shell :: git stash with a message 
Shell :: scp key 
Shell :: directory path view 
Shell :: Nextcloud Fedora 36 
Shell :: git push to existing repo 
Shell :: undo a git merge 
Shell :: find and kill process 
Shell :: kali tools subsystem 
Shell :: remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =