Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(csvgrep): Use variable ($1) instead of replstr to avoid quoting …
…issues
- Loading branch information
c4e5612
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpmckinney: After the discussion in #1209 it took me a while to grasp and understand what the tail part of the command actually does.
sh
aftercsvcut -n'
is actually not needed as you are basically just supplying a first argument to the command that you want to execute so you can access the second argument (the line you parsed) as$1
. It would be better to only use one argument (without the secondsh
) and access it via$0
. This becomes more clear if you add the-t
parameter that prints the executed commands to stderr before executing them.679
for this file more meaningful as it's found in two columns.So in summary, I'd alter the example to:
Sorry, I don't want to come across as pedantic and neither want to dwell on it. I appreciate the good software (I use it every day) and the effort you put into maintaining it.
c4e5612
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
$0
is indeed simpler, without the extrash
. I meant to use 22, not 222 (22 gives some variety in what is matched).