On Mon, Sep 24, 2018 at 2:49 PM, Rick Stevens <ricks@xxxxxxxxxxxxxx> wrote: > On 9/24/18 10:56 AM, bruce wrote: >> simple test file >> cat gg.dat >> % Total % Received % Xferd Average Speed Time Time Time Current >> Dload Upload Total Spent Left Speed >> 100 42437 100 42437 0 0 590 0 0:01:11 0:01:11 --:--:-- 8789 >> 100 41664 100 41664 0 0 140k 0 --:--:-- --:--:-- --:--:-- 2034k >> 100 34574 100 34574 0 0 133k 0 --:--:-- --:--:-- --:--:-- 133k >> 100 42430 100 42430 0 0 179k 0 --:--:-- --:--:-- --:--:-- 179k >> 100 42428 100 42428 0 0 207k 0 --:--:-- --:--:-- --:--:-- 207k >> >> I simply want to test/check for the actual string --->>>:--- 0<<< >> >> I've tested a number of different grep permutations.. missing something.. >> >> grep -i ":--- 0" gg.dat >> doesn't work... >> >> I'm not looking to match regex but find the actual string. > > Well, in the example you show, there's nothing with a colon (:) followed > by three dashes, some spaces and a zero. A number of entries have a > colon and TWO dashes, but none that are followed by spaces and a zero. > So, no, grep isn't going to find anything that matches. > ---------------------------------------------------------------------- > - Rick Stevens, Systems Engineer, AllDigital ricks@xxxxxxxxxxxxxx - > - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - > - - > - The trouble with troubleshooting is that trouble sometimes - > - shoots back. - > ---------------------------------------------------------------------- > _______________________________________________ > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx arrgghh.... supposed to be "2" dashes.. with the spaces.. grep -e ":-- 0" /cloud_nfs/kk1.dat thanks... _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx