Search Results

Search: Posts Made By: doc.arne
7,338
Posted By doc.arne
Conditional statement in bash
I want to combine 2 conditional statements by using -o in bash, but it won't work.

if [ ( $1 -lt 1 ) -o ( $1 -gt $nr ) ] ; then
echo "The number needs to be between 0 and $nr"
fi

Each time i...
1,961
Posted By doc.arne
Easy enough, but it worked. My book said one =...
Easy enough, but it worked. My book said one = should be enough
1,961
Posted By doc.arne
if-statement troubles
I try to compare the day and month of someones birthday with the day and month of today, so my little bash script can send a mail to the person that has its birthday that day.

The first line of...
Showing results 1 to 3 of 3

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