Skip to content

kalanik0a/jFind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jFind - A Java-based CLi file/directory regular expression search tool.

Update

  • Moving from JDK 11 to JDK 22-24
  • This program will be kept compatible with JDK 11 until it is no longer supported.

Compiling

This program is compiled with IDEA from JetBrains, however this may also be built using:

Windows Machines

  • Please make sure that JDK is installed to generate the JAR file
.\build.ps1

Linux or WSL Machines

  • Please make sure that JDK is installed to generate the JAR file
  • OpenJDK may also be used; if that is your preference
./build.sh

Example Commands

# Display help
$ java -jar jFind.jar --help

# Search for the hex pattern of a JAR file
$ java -jar jFind.jar --dir . --check-files --recursive --byte-pattern "50,4B,03,04"

# Search for email addresses using a regular expression
$ java -jar jFind.jar --dir ./node_modules --check-files --recursive --regex "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}"

Help

Usage: jfind [--dir <search_directory>] [--file <search_file>] [--check-files] [--recursive] [--byte-pattern <pattern>] [--regex <pattern>]
    --regex <pattern>
          Java Regular Expression to search with
    --dir <search_directory>
          Directory to be searched.
    --file <search_file>
          File to be searched.
    --check-files
          Check files for content matching EXPRESSION
    --recursive
          To recursively search directories.
    --byte-pattern <pattern>
          Byte pattern to search for in binary files (comma-separated hex values, e.g., 01,02,03).

About

jFind a Java-based CLI Regular Expression Search Tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published