Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash for loop with decimals

you cannot do that, bash do not support floting arithmatics.
use bash sequences indead
bash for loos do not start from fractions like 0.5 0.25 .. only support intigers 

for i in $(seq 3.0 0.1 4.5); 
do 
  echo $i; 
done
Comment

PREVIOUS NEXT
Code Example
Shell :: android studio add flutter plugin 
Shell :: linux single line eof 
Shell :: heredoc remove leading space linux bash 
Shell :: with great power comes great responsibility ubuntu 
Shell :: node get git hash 
Shell :: Ubuntu Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 15551 (apt) 
Shell :: install ChromeHeadless wsl 
Shell :: sudo: netstat: command not found 
Shell :: git conflicts in yarn-lock 
Shell :: kubernetes pod init command run 
Shell :: generate kubernetes dashboard token longer time 
Shell :: visule stdio fro kali 
Shell :: How do I push a new local branch to a remote Git repository and track it too? 
Shell :: nmap -sY command use 
Shell :: ubuntu disable mouse click on release 
Shell :: rem command 
Shell :: tarball -list 
Shell :: Show error message and exit if $FOO is unset (or null) 
Shell :: instal specific version software in archlinux 
Shell :: Command to get list of shell variables with less length in bash 
Shell :: wget raw to file 
Shell :: kill process running on port 80 
Shell :: install docker debian 10 
Shell :: powershell datetime to string 
Shell :: powershell merge csv files 
Shell :: list ios devices command line 
Shell :: awk or statement 
Shell :: write command in linux 
Shell :: install playit to ubuntu 
Shell :: evans cycles womens gravel bikes 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =