CLI tool to search text in XLSX, XLS and ODS files. It works similarly to Unix\GNU Linux grep
Project description
Owerview
xlsxgrep is a CLI tool to search text in XLSX, XLS, CSV and ODS files. It works similarly to Unix/GNU Linux grep.
Features
-
Grep compatible: xlsxgrep tries to be compatible with Unix/Linux grep, where it makes sense. Some of grep options are supported (such as
-r
,-i
or-c
). -
Search many XLSX, XLS, CSV and ODS files at once, even recursively in directories.
-
Regular expressions: Python regex.
-
Supported file types: csv, ods, xls, xlsx
Usage:
usage: xlsxgrep [-h] [-V] [-i] [-P] [-w] [-c] [-r] [-H] [-N] [-l] [-L] [-sep SEPARATOR]
pattern path [path ...]
positional arguments:
pattern use PATTERN as the pattern to search for.
path file or folder location
optional arguments:
-h, --help show this help message and exit
-V, --version display version information and exit.
-P, --python-regex PATTERN is a Python regular expression. This is the default.
-F, --fixed-strings interpret PATTERN as fixed strings, not regular expressions.
-i, --ignore-case ignore case distinctions.
-w, --word-regexp force PATTERN to match only whole words.
-c, --count print only a count of matches per file.
-r, --recursive search directories recursively.
-H, --with-filename print the file name for each match.
-N, --with-sheetname print the sheet name for each match.
-l, --files-with-match
print only names of FILEs with match pattern.
-L, --files-without-match
print only names of FILEs with no match pattern.
-sep SEPARATOR, --separator SEPARATOR
define custom list separator for output, default is TAB
Examples:
xlsxgrep -i "foo" foobar.xlsx
xlsxgrep -c -H "(?i)foo|bar" /folder
Installation
pip install xlsxgrep
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xlsxgrep-0.0.27.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for xlsxgrep-0.0.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8d1c507a04458bdb72b63496c03abedc0f659e6a8192190af0ba74038b0d981 |
|
MD5 | 14792dadb4a8607c4733a2480f1dfe20 |
|
BLAKE2b-256 | cb5fce4a8ccebf4b7a99929435994ab181238189fe4563ef809d36233c054a2f |