Text Processing commands

找到 126 条

File inspection

59 commands

a2p

Translate awk scripts to Perl

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

awk

Pattern scanning and text processing language

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

csvcut

CSV column selector and reorderer

csvcut -c [1,3,5] [data.csv]
Details

du

disk usage analyzer

du -sh [directory]
Details

gawk

GNU implementation of AWK text processor

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

git-archive

Create archives of repository files without version control metadata

git archive HEAD -o [archive.tar]
Details

git-mr

Check out GitLab merge requests

git mr [51]
Details

git-reset

Reset current HEAD to a specified state

git reset [file]
Details

git-rev-list

List commit objects in reverse chronological order

git rev-list HEAD
Details

git-rev-parse

Pick out and massage parameters for other git commands

git rev-parse HEAD
Details

head

outputs the first 10 lines of each FILE to standard output

head path/to/file
Details

keep-header

preserves the first line of a file while passing the remaining lines through

keep-header [file] -- sort
Details

lazyjournal

TUI for viewing logs from journald, Docker, and Kubernetes

lazyjournal
Details

less

terminal pager program used to view the contents of text files one

less [file]
Details

miller

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

mlr --csv --ojson cat [file.csv]
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

Directory listing

45 commands

atac

Postman-like API client for the terminal

atac
Details

bgpgrep

Filter and search BGP routing data in MRT format

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

combine

combine lines of two files using boolean operations

combine [file1] and [file2]
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

deflect

Agentless SSH-based DevOps command center for Linux infrastructure

pip install deflect-one
Details

getrandom

kernel random number generator interface

head -c [16] /dev/urandom | xxd
Details

git-checkout

Switch branches or restore working tree files

git checkout [branch-name]
Details

git-mktree

Create tree object from ls-tree format

git ls-tree HEAD | git mktree
Details

gtop

terminal-based graphical activity monitor written in Node

gtop
Details

hp-clean

performs print head cleaning on HP printers

hp-clean
Details

ii

minimalist filesystem-based IRC client

ii -s [irc.libera.chat] -n [nickname]
Details

jq

command-line JSON processor

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

kubetail

tails logs from multiple pods simultaneously

kubetail [pod-name-prefix]
Details

logss

CLI tool for log stream splitting and visualization

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

lstr

Fast minimalist directory tree viewer

lstr
Details

lwp-request

command-line HTTP client from the LWP suite

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

mcheck

Heap consistency checking for malloc

mcheck(NULL)
Details

nerdlog

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

nerdlog [user]@[host]
Details

onefetch

command-line Git information tool that displays repository summary with ASCII

onefetch
Details

perl

The Perl 5 language interpreter

perl [script.pl]
Details

pngquant

Lossy PNG compression via color quantization

pngquant --quality=[65-80] [image.png]
Details

pnmquant

Reduce color count in PNM images

pnmquant [256] [input.pnm] > [output.pnm]
Details

pod2html

Convert Perl POD documentation to HTML

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

resolvconf

Manage DNS resolver configuration dynamically

resolvconf -u
Details

Text processing

29 commands

apt-sortpkgs

Sort package index files

apt-sortpkgs [Packages] > [Packages.sorted]
Details

aws-dynamodb

Manage tables and items in Amazon DynamoDB.

aws dynamodb create-table --table-name [my-table] --attribute-definitions AttributeName=id,AttributeType=S --key-schema AttributeName=id,KeyType=HASH --billing-mode PAY_PER_REQUEST
Details

ctop

Real-time container metrics monitor

ctop -a
Details

cut

extract sections from lines of files

cut -f [1,3] [file.txt]
Details

ed

standard Unix line editor

ed [file.txt]
Details

git-request-pull

Generate a pull request summary for email submission

git request-pull [start] [url]
Details

gvpr

graph stream editor, similar to awk for graphs

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

iftop

displays bandwidth usage on a network interface, broken down by connection

sudo iftop
Details

keynav

allows mouse cursor control using the keyboard

keynav
Details

mg

micro GNU Emacs-style editor

mg [file.txt]
Details

nth

extracts specific fields from input

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

pnmcolormap

Generate color palette from PNM images

pnmcolormap [256] [image.ppm] > [colormap.ppm]
Details

poster

Scale PostScript images to poster size

poster -p [A0] -s [1.0] [input.ps] > [output.ps]
Details

procmail

Mail delivery agent with recipe-based filtering

procmail < [email.txt]
Details

reflector

Retrieve and filter Arch Linux mirror lists

sudo reflector --sort rate --save /etc/pacman.d/mirrorlist
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

slabtop

Display kernel slab cache information

sudo slabtop
Details

tr

Translate or delete characters

echo "hello" | tr 'a-z' 'A-Z'
Details

tsort

Topological sort of dependency pairs

tsort [dependencies.txt]
Details

tuc

Enhanced text field cutting and splitting

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

xml

XMLStarlet command-line XML toolkit

xml val [file.xml]
Details

xmlstarlet

Command-line XML processing toolkit

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

File operations

11 commands

basalt

TUI for managing Obsidian vaults and notes from the terminal

basalt
Details

git-filter-branch

Rewrite branch history by applying filters

git filter-branch --tree-filter 'rm -f [file]' HEAD
Details

neoss

User-friendly socket statistics with a TUI

neoss
Details

nomino

Batch rename utility for developers

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

nu

nushell, a modern shell with structured data

nu
Details

nushell

Modern shell that treats data as structured information

nu
Details

srgn

Syntax-aware grep and code editing tool

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

sview

Graphical Slurm cluster state viewer

sview
Details

xcv

File cut, copy, and paste for terminal

xcv x [file1] [file2]
Details

zmv

Batch rename files using zsh patterns

zmv '(*)' '${(U)1}'
Details

Search and filters

9 commands

choose

human-friendly alternative to cut and awk

echo "one two three" | choose 0
Details

git-abort

abort any in-progress git operation (rebase, merge, cherry-pick, revert, am)

git abort
Details

git-sed

Find and replace across tracked files

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

jshon

parses JSON in shell scripts

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

stdbuf

Adjust stream buffering of commands

stdbuf -oL [command]
Details

uc

Unicode-aware uppercase filter

echo "[straße]" | uc
Details

vipe

Insert text editor into pipelines

echo "text" | vipe
Details

Network diagnostics

3 commands

git-stash

Temporarily save uncommitted changes for later

git stash
Details

Processes and services

1 commands

qsv commands

1 commands

qsv

Blazing-fast data-wrangling toolkit for CSV and tabular data

qsv count [data.csv]
Details