grep tipsJuly 14, 2020 · One min readHreniuc Cristian-AlexandruMaintainer of this libraryGet lines that contain the same pattern twice or X times(source):grep -E "(string.*){2}" file.log