Answers for "shell script if and operator"

C#
0

shell script or condition

if [ "$fname" = "a.txt" ] || [ "$fname" = "c.txt" ]
Posted by: Guest on August-12-2021
0

or operator in shell

if [ $uptime -lt 0 ] || [ $questions -lt 1 ] || [ $slow -gt 10 ]; then
    some code
fi
Posted by: Guest on June-02-2021

C# Answers by Framework

Browse Popular Code Answers by Language