Skip to content

Commit c4e5612

Browse files
committed
docs(csvgrep): Use variable ($1) instead of replstr to avoid quoting issues
1 parent 4e0b890 commit c4e5612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/scripts/csvgrep.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ Get the indices of the columns that contain matching text (``\x1e`` is the `Reco
7575

7676
.. code-block::
7777
78-
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
78+
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

0 commit comments

Comments
 (0)