Skip to main content

Owerview

xlsxgrep is a CLI tool to search text in XLSX, XLS, XLSM, CSV, TSV 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, XLSM, CSV, TSV and ODS files at once, even recursively in directories.

  • Format-aware spreadsheet output: XLSX/XLSM and XLS numeric cells are rendered using their spreadsheet number format. ODS cells use their stored display text. CSV and TSV values are printed exactly as stored in the source file.

  • Regular expressions: Python regex and POSIX extended regular expressions (-E).

  • Supported file types: csv, ods, tsv, xls, xlsx, xlsm.

  • Works on all major platforms: Windows, macOS, BSD and Linux,

Usage:


usage: xlsxgrep [-h] [-V] [-P] [-E] [-F] [-i] [-w] [-c] [-r] [-H] [-N]
                [-l] [-L] [-S SEPARATOR] [-Z] [-j JOBS]
                [--row | --column] [-d] PATTTERN FILE [FILE ...]

positional arguments:
  PATTERN                    use PATTERN as the pattern to search for.
  FILE                       file or path to folder

options:
  -h, --help                 show this help message and exit.
  -V, --version              display version information and exit.
  -P, --python-regex         PATTERN is a Python regular expression.
  -E, --extended-regexp      PATTERN is a POSIX extended regular expression (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.
  -S, --separator SEPARATOR  define custom list separator for output, the default is TAB.
  -j, --jobs JOBS            number of CPU cores/processes to use for search (default: 1).
      --row                  search rows and print matching rows (default).
      --column               search columns and print whole matching columns vertically.

Examples:

xlsxgrep -i "foo" foobar.xlsx
xlsxgrep -c -H "(?i)foo|bar" /folder

For more details and options, see xlsxgrep(1) or run 'man xlsxgrep'.


Installation

pip install xlsxgrep

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.37.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xlsxgrep-0.0.37-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file xlsxgrep-0.0.37.tar.gz.

File metadata

  • Download URL: xlsxgrep-0.0.37.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for xlsxgrep-0.0.37.tar.gz
Algorithm Hash digest
SHA256 c35db67a754284350fc4135dc5c0b7ecc3f1c121b8a6de3b23f7db233c7cdd7a
MD5 598dec88e239ad0d3a2bf18dbc7e5431
BLAKE2b-256 9d7f56dd5ab4db186d7e6bb92eeec6d16f088efcf6298db56489c16df6b66d3d

See more details on using hashes here.

File details

Details for the file xlsxgrep-0.0.37-py3-none-any.whl.

File metadata

  • Download URL: xlsxgrep-0.0.37-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for xlsxgrep-0.0.37-py3-none-any.whl
Algorithm Hash digest
SHA256 3c3c31d8b2e5f3575b8c5caa684f20198afbb3fe43408ae645c45dcdefe8062d
MD5 48a75693ff428c11606fb9f6764deeb6
BLAKE2b-256 c0ddc12e83d2a33e46d1a8be3f2a11af33088dfb5a48751e809bd20fed695287

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.38

2 files

This release

0.0.37 This release

2 files

0.0.36

2 files

0.0.35

2 files

0.0.34

2 files

0.0.33

2 files

0.0.32

2 files

0.0.31

2 files

0.0.30

1 file

0.0.29

2 files

0.0.28

2 files

0.0.27

2 files

0.0.26

2 files

0.0.25

2 files

0.0.24

1 file

0.0.23

2 files

0.0.22

2 files

0.0.21

2 files

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page