---
name: "grepjar"
section: "1"
platform: "linux"
package: "fastjar"
version: "0.98-7"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/grepjar"
---

# grepjar(1)

search files in a jar file for a pattern

## NAME

grepjar - search files in a jar file for a pattern

## SYNOPSIS

grepjar \[**-bcinsw**\] **-e** *PATTERN* \| *PATTERN* *files*...

## DESCRIPTION

The `"grepjar"` program can be used to search files in a jar file for a pattern.

## OPTIONS

- **-b**

  Print byte offset of match.

- **-c**

  Print number of matches.

- **-i**

  Compare case-insensitively.

- **-n**

  Print line number of each match.

- **-s**

  Suppress error messages.

- **-w**

  Force *PATTERN* to match only whole words.

- **-e** *PATTERN*

  Use *PATTERN* as regular expression.

- **--help**

  Print help, then exit.

- **-V**

  - **--version**

  Print version number, then exit.

## SEE ALSO

[*fastjar*(1)](/fastjar/1.md), [*gcj*(1)](/gcj/1.md), [*gij*(1)](/gij/1.md), [*gfdl*(7)](/gfdl/7.md) and the Info entry for *gcj*.

## COPYRIGHT

Copyright (C) 2002, 2007, 2008 Matthias Klose

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. A copy of the license is included in the man page [*gfdl*(7)](/gfdl/7.md).
