Search Results

Search: Posts Made By: BHASKARREDDY006
2,491
Posted By Scrutinizer
What it is complaining about is the use of back...
What it is complaining about is the use of back ticks (`), which should be left out.
2,491
Posted By elixir_sinari
As Scrutinizer rightly said, remove the...
As Scrutinizer rightly said, remove the back-ticks on line 13..

With those back-ticks, your shell is assuming that the values of num and i are commands...
2,491
Posted By Scott
No-one mentioned using single [ ... ], and I...
No-one mentioned using single [ ... ], and I suspect you missed a space between [ and $num. Please use code tags, when posting code.

Use:


[[ $num > $i ]]


Or:


[ "$num" -gt "$i" ]
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy