On 9/24/18 1:56 PM, 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.
>
> thoughts/comments
>
> thanks
> _______________________________________________

Just off the top of my head, have you tried fgrep (or "grep -F")?  This
says to treat the pattern as a string and not a regex.  That and
surround the string with single quotes to be sure that the shell doesn't
interpret it.


*Mark C. Allman, PMP, CSM*
Founder, See How You Ski, www.seehowyouski.com <http://www.seehowyouski.com>
Sr. Project Manager, Allman Professional Consulting, Inc.,
www.allmanpc.com <http://www.allmanpc.com>
617-947-4263, Twitter: @allmanpc
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to