Re: simple grep issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux