CmdID

CmdID / Commands

sd

Intuitive find and replace. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Trim some whitespace using a regex (output stream: stdout)

echo 'lorem ipsum 23 ' | sd '\s+$' ''Identify

Replace words using capture groups (output stream: stdout)

echo 'cargo +nightly watch' | sd '(\w+)\s+\+(\w+)\s+(\w+)' 'cmd: $1, channel: $2, subcmd: $3'Identify

Find and replace in a specific file (output stream: stdout)

sd --preview 'window.fetch' 'fetch' path/to/file.jsIdentify

Find and replace in all files in the current project

find . -type f -exec sd 'from "react"' 'from "preact"' {} \;Identify
-typetype is (block, char, dir, file, symlink, pipe, socket) toybox
-execRun command with path toybox

Trips 1 Sigma rule: informationalFile and Directory Discovery - Linux by Daniil Yugoslavskiy, oscd.community, CheraghiMilad