Regular Expressions commands

找到 155 条

File inspection

51 commands

a2p

Translate awk scripts to Perl

a2p [script.awk] > [script.pl]
Details

a2ping

Convert between PostScript, EPS, and PDF formats

a2ping [input.ps] [output.pdf]
Details

ack

grep-like source code search tool for programmers

ack [pattern]
Details

awk

Pattern scanning and text processing language

awk '{print $5}' [path/to/file]
Details

bzegrep

Search bzip2 files using extended regular expressions

bzegrep "[pattern]" [path/to/file.bz2]
Details

bzgrep

Search bzip2 compressed files for patterns

bzgrep ["pattern"] [file.bz2]
Details

carton

Perl module dependency manager

carton install
Details

cobib

Console-based bibliography manager

cobib
Details

egrep

extended regex pattern searcher

egrep "[pattern]" [file.txt]
Details

fd

fast and user-friendly file finder

fd [pattern]
Details

fdfind

fast and user-friendly file finder

fdfind [pattern]
Details

find2perl

Translate find command lines to equivalent Perl code

find2perl [directory] -name "[*.txt]"
Details

gawk

GNU implementation of AWK text processor

gawk '{print $1, $3}' [path/to/file]
Details

giskismet

wireless recon visualization tool for Kismet data

giskismet -x [kismet-output.netxml]
Details

gitweb

Web interface for browsing Git repositories

git instaweb --httpd=[webrick]
Details

if

Shell conditional statement

if [[ condition ]]; then command; fi
Details

igrep

Interactive grep with TUI for browsing results

igrep "[pattern]"
Details

irssi

terminal-based IRC client known for its scriptability, themability

irssi
Details

kakoune

Modal text editor with multiple selections as a core concept

kak [path/to/file]
Details

lazyjournal

TUI for viewing logs from journald, Docker, and Kubernetes

lazyjournal
Details

lpinfo

lists available printers and printer drivers known to CUPS

lpinfo -v
Details

miller

like awk, sed, cut, join, and sort for name-indexed data such as CSV

mlr --csv --ojson cat [file.csv]
Details

mimetype

determines the MIME type of files using the shared-mime-info database

mimetype [path/to/file]
Details

mlr

processes structured text data

mlr --csv --ojson cat [data.csv]
Details

msgfilter

filters PO file translations through a command

msgfilter [sed -e 's/old/new/g'] < [input.po] > [output.po]
Details

pdfgrep

searches for text patterns in PDF files, similar to grep but for PDFs

pdfgrep "[pattern]" [file.pdf]
Details

percol

adds interactive filtering to any text stream

[command] | percol
Details

perldiag

perl documentation file containing all diagnostic messages that Perl can produce

perldoc perldiag
Details

pgrep

searches for processes by name or attributes, returning their PIDs

pgrep [nginx]
Details

plocate

Find files quickly using indexed database

plocate [filename]
Details

pod2man

Convert Perl POD documentation to man pages

pod2man [file.pod] > [file.1]
Details

psgrep

Search for processes by name pattern

psgrep [pattern]
Details

ptargrep

Apply pattern matching to the contents of files in a tar archive

ptargrep "[pattern]" [archive.tar.gz]
Details

raku

The Raku programming language interpreter

raku
Details

Directory listing

48 commands

apkleaks

Scan APKs for hardcoded secrets and keys

apkleaks -f [app.apk]
Details

ast-grep

Structural code search and rewrite using AST patterns

ast-grep --pattern 'console.log($ARG)'
Details

auracle

Lightweight tool for querying the Arch User Repository.

auracle search '[regex]'
Details

bgpgrep

Filter and search BGP routing data in MRT format

bgpgrep [path/to/rib.mrt.gz] -subnet [192.0.2.0/24]
Details

checkov

static analysis for infrastructure as code

checkov -d [path/to/directory]
Details

cloc

source code line counter

cloc [directory]
Details

codemod

interactive regex-based codebase refactoring tool

codemod -m -d [directory] '[old_pattern]' '[new_pattern]'
Details

cpan

Perl module installer from CPAN

cpan [Module::Name]
Details

cpanm

Zero-configuration CPAN installer

cpanm [Module::Name]
Details

csv2tsv

CSV to tab-separated values converter

csv2tsv [input.csv] > [output.tsv]
Details

csvkit

Suite of command-line CSV processing tools

csvlook [data.csv]
Details

enum4linux

enumerate information from Windows and Samba systems

enum4linux -a [remote_host]
Details

expr

evaluate arithmetic and string expressions in shell

expr [5] + [3]
Details

feroxbuster

fast recursive web content discovery tool

feroxbuster --url [https://example.com]
Details

fungible

Terminal UI for personal finance with Plaid sync, categorization, tags and FIRE tracking

fungible
Details

hexchat

graphical IRC client for Linux, Windows, and macOS

hexchat
Details

jq

command-line JSON processor

cat [data.json] | jq '.'
Details

kubetail

tails logs from multiple pods simultaneously

kubetail [pod-name-prefix]
Details

latexmk

perl script that automates LaTeX document compilation

latexmk -pdf [document.tex]
Details

latexpand

Flatten LaTeX source by expanding \input and \include directives

latexpand [input.tex] > [output.tex]
Details

lid.idutils

queries an ID database to find tokens matching a specified pattern

lid
Details

lla

Blazing fast ls replacement with superpowers

lla
Details

logss

CLI tool for log stream splitting and visualization

tail -f [logfile] | logss -c "[pattern1]" -c "[pattern2]"
Details

lwp-request

command-line HTTP client from the LWP suite

lwp-request [https://example.com/]
Details

lzfgrep

Search compressed files for fixed strings

lzfgrep [string] [file.lz]
Details

mkid

builds an identifier database for source code files, enabling fast searches

mkid
Details

moreutils

collection of useful Unix utilities that don't quite fit anywhere else

cat [file] | grep [pattern] | sponge [file]
Details

ncu

identifies outdated dependencies in package

ncu
Details

nerdlog

Fast remote-first multi-host TUI log viewer with timeline histogram

nerdlog [user]@[host]
Details

netshow

Interactive process-aware network connection monitor

netshow
Details

perl

The Perl 5 language interpreter

perl [script.pl]
Details

perlre

documents Perl regular expressions, one of the most powerful regex

perldoc perlre
Details

pii-shield

Detect and mask personally identifiable information in text

pii-shield detect "Contact john@example.com for help"
Details

plenv

Manage multiple Perl installations

plenv versions
Details

pod2html

Convert Perl POD documentation to HTML

pod2html --infile=[file.pod] --outfile=[file.html]
Details

Search and filters

38 commands

abbr

fish shell abbreviation manager

abbr --add [abbreviation_name] [command] [arguments]
Details

ag

Search code fast like ack but faster

ag [pattern]
Details

apropos

Search manual page descriptions by keyword

apropos [keyword]
Details

choose

human-friendly alternative to cut and awk

echo "one two three" | choose 0
Details

csvgrep

CSV row filter by column values

csvgrep -c [column] -m "[value]" [data.csv]
Details

delta

syntax-highlighting pager for diffs

git diff | delta
Details

fastmod

Fast, interactive codebase-wide find and replace

fastmod "[old_string]" "[new_string]"
Details

fgrep

fixed-string search without regex

fgrep "[search string]" [file.txt]
Details

git-grep

Search patterns in tracked files

git grep "[pattern]"
Details

git-info

Display comprehensive repository information

git info
Details

git-sed

Find and replace across tracked files

git sed "[old]" "[new]"
Details

grep

Pattern-matching text search utility

grep [pattern] [file]
Details

gron

Make JSON greppable

gron [file.json]
Details

grub-reboot

set default boot entry for next reboot only

sudo grub-reboot [entry_number]
Details

hwatch

Modern alternative to the watch command with diff history

hwatch [command]
Details

jshon

parses JSON in shell scripts

echo '{"name":"test"}' | jshon -e name
Details

json_pp

JSON pretty printer from Perl

json_pp < [data.json]
Details

kvm

linux kernel virtualization module

lscpu | grep Virtualization
Details

lzegrep

searches for extended regular expression patterns in lzip-compressed files

lzegrep [pattern] [file.lz]
Details

lzgrep

searches for patterns in lzip-compressed files

lzgrep [pattern] [file.lz]
Details

nb

Command-line note-taking, bookmarking, and knowledge base

nb add
Details

nvrs

Fast new version checker for software releases

nvrs
Details

perldoc

Display Perl documentation

perldoc [Module::Name]
Details

pgbackrest

Reliable PostgreSQL backup and restore tool

pgbackrest --stanza=[name] stanza-create
Details

rexi

Terminal UI for regex testing

echo "hello world 123" | rexi
Details

scooter

Interactive find-and-replace in the terminal

scooter
Details

semgrep

Lightweight static analysis for code security and quality

semgrep scan --config auto
Details

serpl

VS Code-style search and replace TUI for the terminal

serpl
Details

stdbuf

Adjust stream buffering of commands

stdbuf -oL [command]
Details

swig

Generate language bindings for C/C++ code

swig -python [interface.i]
Details

uc

Unicode-aware uppercase filter

echo "[straße]" | uc
Details

unbuffer

Disable output buffering for commands

unbuffer [command]
Details

vgrep

Interactive grep with editor integration

vgrep "[pattern]"
Details

File operations

16 commands

exiqgrep

Exim mail queue search utility

exiqgrep -f '<[email@example.com]>'
Details

file-rename

Perl regex-based file renaming

file-rename 's/old/new/' [files]
Details

h2xs

creates Perl extension module skeletons

h2xs -A -n [Module::Name]
Details

hurl

Run and test HTTP requests with plain text

hurl [path/to/file.hurl]
Details

killall

sends a signal to all processes running the specified command

killall [process_name]
Details

nomino

Batch rename utility for developers

nomino -r "[regex]" "[output_pattern]"
Details

perl-rename

renames files using Perl regular expressions

perl-rename 's/old/new/' [*.txt]
Details

prename

Rename files using Perl expressions

prename 's/old/new/' [*.txt]
Details

regname

Regular expression based file rename tool

regname [pattern] [replacement] [files]
Details

rename.ul

Rename files using simple string substitution (util-linux version)

rename.ul foo bar *.txt
Details

rnm

Bulk rename files with patterns

rnm -ss [old] -rs [new] [directory]
Details

srgn

Syntax-aware grep and code editing tool

echo 'Hello World!' | srgn '[wW]orld' -- 'there'
Details

vd

Terminal-based data exploration spreadsheet

vd [file.csv]
Details

Text processing

14 commands

caret

Shell history substitution and regex anchor character

^[old]^[new]
Details

ed

standard Unix line editor

ed [file.txt]
Details

enc2xs

Perl utility for creating custom Encode modules

enc2xs -M [ModuleName] [encoding.ucm]
Details

gvpr

graph stream editor, similar to awk for graphs

gvpr -f [script.gvpr] [input.gv]
Details

keen

Minimal terminal AI coding agent with pluggable LLM providers

keen
Details

nth

extracts specific fields from input

echo "[a b c]" | nth [2]
Details

regex

Regular expression syntax reference

regex
Details

ruby

Ruby programming language interpreter

ruby
Details

sed

Stream editor for text transformations

[command] | sed 's/apple/mango/g'
Details

sqfstar

Create squashfs filesystem from tar archives

sqfstar < [archive.tar] [filesystem.squashfs]
Details

tuc

Enhanced text field cutting and splitting

echo "[a\tb\tc]" | tuc -f 1
Details

xmlstarlet

Command-line XML processing toolkit

xmlstarlet sel -t -v "[xpath]" [file.xml]
Details

Network diagnostics

6 commands

grex

Regex generator from example strings

grex [foo] [bar] [baz]
Details

h2ph

Convert C header files to Perl header files

h2ph [header.h]
Details

logria

CLI tool for real-time log aggregation and analysis

logria
Details

perlbrew

manages multiple Perl installations in user space

perlbrew install perl-[5.38.0]
Details

yara

Pattern matching for malware detection

yara [rules.yar] [file]
Details

Media tools

2 commands

pl2pm

Convert Perl4 libraries to Perl5 modules

pl2pm [library.pl] > [Module.pm]
Details

pod2text

Convert Perl POD documentation to plain text

pod2text [file.pod]
Details

Shell workflow

1 commands

Users and permissions

1 commands

conda commands

1 commands

exrex commands

1 commands

exrex

reverse regex matching string generator

exrex '[a-z]{3}'
Details

podchecker commands

1 commands

podchecker

Validate Perl POD documentation syntax

podchecker [file.pod]
Details

podselect commands

1 commands

podselect

Extract sections from Perl POD files

podselect -section [NAME] [file.pod]
Details

tlmgr commands

1 commands

urxvt commands

1 commands

urxvt

Lightweight Unicode terminal emulator for X11

urxvt
Details

vi-mongo commands

1 commands