Skip to content

Commit

Permalink
docs(csvgrep): Simplify xargs command with $0. Use 22 not 222.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 5, 2023
1 parent c4e5612 commit 002d6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/scripts/csvgrep.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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' -n1 sh -c 'echo $1 | csvcut -n' sh | grep 222
csvgrep -m 22 -a -c 1- examples/realdata/FY09_EDU_Recipients_by_State.csv | csvformat -M $'\x1e' | xargs -d $'\x1e' -n1 sh -c 'echo $0 | csvcut -n' | grep 22

0 comments on commit 002d6a7

Please sign in to comment.