[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] checking file line: 'commit;'
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] checking file line: 'commit;' |
Date: |
Thu, 11 Aug 2016 10:09:10 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 8/11/16 8:59 AM, Paolo Supino wrote:
> Can anyone please help understand how I
> can check that a string equals to commit;
Something like
case "$string" in
'commit;') ok ;;
*) not ok ;;
esac
or
[ "$string" = 'commit;' ]
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/