Skip to content

Commit

Permalink
select: add more regex examples; wordsmith usage text
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
jqnatividad committed Jul 28, 2024
1 parent d9d4f3f commit 57daffb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cmd/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ selected using regular expressions.
$ qsv select 1,4,5-7 --random --seed 42
Select columns using a regex using '/<regex>/':
# select columns starting with 'a'
$ qsv select /^a/
# select columns with a digit
$ qsv select '/^.*\d.*$/'
# remove SSN, account_no and password columns
$ qsv select '!/SSN|account_no|password/'
Re-order and duplicate columns arbitrarily:
Re-order and duplicate columns arbitrarily using different types of selectors:
$ qsv select 3-1,Header3-Header1,Header1,Foo[2],Header1
Quote column names that conflict with selector syntax:
Expand Down

0 comments on commit 57daffb

Please sign in to comment.