X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=grep.cpp;fp=grep.cpp;h=8c369a56f0c2fb3834c9d3ba5b0eed998ed92e67;hp=0000000000000000000000000000000000000000;hb=f3afcce30a6213fedba4330a5c0b1edc5b528b70;hpb=3ab2746e9f0626d691d8946d50ed399d45e9f770 diff --git a/grep.cpp b/grep.cpp new file mode 100644 index 0000000..8c369a5 --- /dev/null +++ b/grep.cpp @@ -0,0 +1,29 @@ +/* $Id$ */ +#include +#include +#include "regex.h" + +using namespace std; +using namespace Msp; + +int main(int argc, char **argv) +{ + if(argc<2) + { + cerr<<"Usage: "<\n"; + return 1; + } + + Regex regex(argv[1]); + cout<