a Unix/Linux grep-like command remake in C++11