From d0dd2cff1750909d75e948fe513ad3a7727dd5b3 Mon Sep 17 00:00:00 2001 From: Nicolo P Date: Wed, 16 Feb 2022 09:47:56 +0100 Subject: [PATCH] Fix stupid bug with ignore-case --- README.md | 21 +++++++++++---------- crapgrep/crapgrep.py | 36 ++++++++++++++---------------------- crapgrep/exceptions.py | 4 ++-- 3 files changed, 27 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 81114e4..cd37630 100644 --- a/README.md +++ b/README.md @@ -6,20 +6,21 @@ Then this is for you... ## What is this? -`crapgrep` is a poor imitation of the Unix utility `grep` written in Python. +`crapgrep` is a poor imitation of the Unix utility `grep`, written in Python. + More specifically, it's a command line tool to search for a pattern or a substring in each line of one or more text files. -The command synopsis is very similar to `grep`, although it needs the Python interpreter to be invoked explicitly (at the moment, at least): +The command synopsis is very similar to `grep`'s, although it needs the Python interpreter to be invoked explicitly (at the moment, at least): ``` -python crapgrep.py [OPTIONS] [PATTERN] [FILE[...]] +python crapgrep.py [OPTION...] [PATTERN] [FILE...] ``` -_**Note**: obviously, `crapgrep` doesn't read from `stdin`, which makes it even more useless..._ +> _**Note**: obviously, `crapgrep` doesn't read from `stdin`, which makes it even more useless..._ ## Installation -If you like wasting time because apparently you have nothing better to do, you can try `crapgrep` by cloning the repository with `git`: +If you like wasting time (because apparently you have nothing better to do), you can try `crapgrep` by cloning the repository with `git`: ```bash git clone https://baltig.cnr.it/nicolo.paraciani/crapgrep.git @@ -28,8 +29,8 @@ git clone https://baltig.cnr.it/nicolo.paraciani/crapgrep.git then ```bash -cd crapgrep -python crapgrep.py