0

I am trying to run

clear && docker logs 0d5f6a87fc49 | grep "9c3bc6e0\-af6e\-11ed\-9412\-edc770e32f93"

As for me it looks pretty straightforward: "find strings containing a substring"

But no matter what I am do, grep finds any string containing any bit of uuid ["9c3bc6e0", "af6e", "11ed", "9412", "edc770e32f93"]

I have tried to escape dashes, build three types of regexps an no luck

Regex builders works fine with my "query", so they do not provide any answers

Test data

uid:[9c3bc6e0-af6e-11ed-9412-edc770e32f93]
uid:[0ca73150-b28d-11ed-a5db-27071701f8e4]
uid:[d95c75e0-b295-11ed-a5db-27071701f8e4]
uid:[621ec330-b2a3-11ed-a5db-27071701f8e4]
uid:[6a6ee7e0-b2a3-11ed-a5db-27071701f8e4]
uid:[525714a0-b2a5-11ed-a5db-27071701f8e4]
uid:[93807250-b2a5-11ed-a5db-27071701f8e4]
uid:[93875020-b2a5-11ed-a5db-27071701f8e4]
uid:[93881370-b2a5-11ed-a5db-27071701f8e4]
uid:[93886190-b2a5-11ed-a5db-27071701f8e4]

Edit: starnge behavior, when i am saving data to file grep works fine(cat greptest.log | grep "9c3bc6e0\-af6e\-11ed\-9412\-edc770e32f93"), when using it from docker it just lists everything

0 Answers0