Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Comparing float or integers in if using bash

if (( $(bc <<< "$1 > 0.0 && $1 > $2") )) ; then
        echo
        echo "$1 is greater than $2"
        echo
else
        echo
        echo "$2 is greater than $1"
        echo
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: psycopg2 not installing on python-alpine 
Shell :: fix EACCEC 
Shell :: powershell send message to all currently logged on users 
Shell :: sc stop 
Shell :: forked repo rebase 
Shell :: curl download with rate limit default 
Shell :: Command to create a hardlink 
Shell :: ubuntu show window current desktop 
Shell :: how to search for a package on arch repositories 
Shell :: Payload retrieve sam and system from a live file system 
Shell :: space as delimiter in cut command 
Shell :: git change oriign 
Shell :: Create bash BACKUP 
Shell :: search for css class in files in vs code 
Shell :: git add symlink 
Shell :: edgerouter x hosts file location 
Shell :: install mysql majaro 
Shell :: installingf 
Shell :: update pulumi 
Shell :: after git merge it want to commit message 
Shell :: see what is through an archive 
Shell :: nginx brotli 
Shell :: wsl start windows program 
Shell :: sed beginning of file 
Shell :: cdbangular install angular 
Shell :: sh add 
Shell :: powershell rename group 
Shell :: dotnet cli db scaffolding 
Shell :: haproxy user ulimit 
Shell :: powersheel comand recursive unzip all 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =