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