Last active
February 1, 2021 10:27
-
-
Save u1and0/ed2ab9c50e01793dcd8235d94ec44fd7 to your computer and use it in GitHub Desktop.
rgのpreオプションを使ってdocファイルをgrepする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### rgのpreオプションを使ってdocに対してripgrep | |
`rg 検索語 --pre catdoc --pre-glob "*.doc"` | |
### rgのpreオプションを使ってxlsに対してripgrep | |
` rg 検索語 --pre xls2csv --pre-glob "*.xls" *.xls` | |
### rgのpreオプションを使ってxlsxに対してripgrep | |
` rg 検索語 --pre xlsx2csv --pre-glob "*.xlsx" *.xlsx` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment