Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash floating point variables

bash do not support floting point in varibles. so 
use seq command output, 

for fp in $(seq 1.0 .01 1.1)
do
     echo $fp; other stuff too
done

https://www.oreilly.com/library/view/bash-cookbook/0596526784/ch06s13.html
Comment

PREVIOUS NEXT
Code Example
Shell :: Bash script Array + For loop 
Shell :: cmd files in directory 
Shell :: delete from git history 
Shell :: while loops in bash 
Shell :: apt install yarn 
Shell :: push amended commit 
Shell :: How do i search for available packages from the command-line 
Shell :: docker create image 
Shell :: yarn uninstall 
Shell :: downloading and updating vscode 
Shell :: ppsspp debian 10 
Shell :: check if bash variable is undefined 
Shell :: git bash in cmd 
Shell :: docker push to private registry 
Shell :: expo app size 
Shell :: command to uninstall windows store 
Shell :: pyenv install ubuntu 
Shell :: ssh into directory 
Shell :: windows terminal background image 
Shell :: how to kill a process in linux 
Shell :: list of created ssh port forwarding 
Shell :: ispconfig ubuntu 18.04 
Shell :: scp linux to mac 
Shell :: update node with nvm 
Shell :: bash substract varible 
Shell :: busybox ubuntu 
Shell :: raspberry pi remote desktop 
Shell :: connect to git repo with ssh-rsa 
Shell :: git lfs all files in folder 
Shell :: mongodb bitnami helm 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =