From c4e5612814b886b2bedbeda87a45e161557c50aa Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:04:38 -0400 Subject: [PATCH] docs(csvgrep): Use variable ($1) instead of replstr to avoid quoting issues --- docs/scripts/csvgrep.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/scripts/csvgrep.rst b/docs/scripts/csvgrep.rst index a94841505..79d41b27d 100644 --- a/docs/scripts/csvgrep.rst +++ b/docs/scripts/csvgrep.rst @@ -75,4 +75,4 @@ Get the indices of the columns that contain matching text (``\x1e`` is the `Reco .. code-block:: - csvgrep -m 222 -a -c 1- examples/realdata/FY09_EDU_Recipients_by_State.csv | csvformat -M $'\x1e' | xargs -d $'\x1e' -I_ sh -c "echo '_' | csvcut -n" | grep 222 + csvgrep -m 222 -a -c 1- examples/realdata/FY09_EDU_Recipients_by_State.csv | csvformat -M $'\x1e' | xargs -d $'\x1e' -n1 sh -c 'echo $1 | csvcut -n' sh | grep 222