mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 01:58:50 +00:00
Update cheatsheets
This commit is contained in:
@@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Find rows that have a certain string in column 1:
|
||||
|
||||
`csvgrep -c {{1}} -m {{string_to_match}} {{data.csv}}`
|
||||
`csvgrep {{[-c|--columns]}} {{1}} {{[-m|--match]}} {{string_to_match}} {{data.csv}}`
|
||||
|
||||
- Find rows in which columns 3 or 4 match a certain regular expression:
|
||||
|
||||
`csvgrep -c {{3,4}} -r {{regular_expression}} {{data.csv}}`
|
||||
`csvgrep {{[-c|--columns]}} {{3,4}} {{[-r|--regex]}} {{regular_expression}} {{data.csv}}`
|
||||
|
||||
- Find rows in which the "name" column does NOT include the string "John Doe":
|
||||
|
||||
`csvgrep -i -c {{name}} -m "{{John Doe}}" {{data.csv}}`
|
||||
`csvgrep {{[-i|--invert-match]}} {{[-c|--columns]}} {{name}} {{[-m|--match]}} "{{John Doe}}" {{data.csv}}`
|
||||
|
||||
Reference in New Issue
Block a user