Search Results

Search: Posts Made By: Xubuntu56
1,770
Posted By Xubuntu56
@rbattel-- Yes, that's exactly what I get. I will...
@rbattel-- Yes, that's exactly what I get. I will work on flag/variable success/failure suggestion.


@joeyg--I'm not sure how to use the Found/NotFound.


@vgersh99--I must have done something...
1,770
Posted By Xubuntu56
@joeyg--I wanted a single response, either "Yes,...
@joeyg--I wanted a single response, either "Yes, that is a bird." or "That is not a bird."
@vbe--I tried something else, but unfortunately it appears I need a stronger hint! Now, it works correctly...
1,770
Posted By Xubuntu56
Simple conditional yields too many responses
In this script:
#!/bin/bash
# bird
read -p "Enter name of a bird "
REPLY=$REPLY
birdname="duck sparrow hawk"
for i in $birdname
do
if [[ "$REPLY" = "$i" ]]
then
...
Showing results 1 to 3 of 3

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