User Tools

Site Tools


linux:bash_check_for_yes_no
#!/bin/bash
 
if [ "$answer" != "${answer#[Yy]}" ]; then
    echo Yes
else
    echo No
fi
linux/bash_check_for_yes_no.txt · Last modified: 12/01/2024 14:59 by Allan