Search Results

Search: Posts Made By: habuchas
2,097
Posted By habuchas
Thank you! I was concentrating so hard on the...
Thank you! I was concentrating so hard on the 'if' I neglected the more obvious......Thanks again.
2,097
Posted By habuchas
Thank you for the replies. The placement of...
Thank you for the replies. The placement of 'then' was important as was the space after 'if' ........Thank you, Agama! However I still needed further modification. Here is the script that works: ...
2,097
Posted By habuchas
comparing variables in an if statement
#!/bin/bash
#timetest
TIMENOW="$(date)"
T1=12:00:00
echo $TIMENOW >timenow
cat timenow |cut -f4 -d' ' >time1
T2=$(sed -n "${1}p" time1)
echo "T1 = " $T1
echo "T2 = " $T2
if[ $T1 -gt $T2 ]...
Showing results 1 to 3 of 3

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