Enter a command. For example: lsof, textql, git show index.


Intuitive find & replace CLI. More information:
  • Trim some whitespace using a regular expression:
    {{echo 'lorem ipsum 23 '}} | sd '\s+$' ''
  • Replace words using capture groups:
    {{echo 'cargo +nightly watch'}} | sd '(\w+)\s+\+(\w+)\s+(\w+)' 'cmd: $1, channel: $2, subcmd: $3'
  • Find and replace in a file printing the result to stdout:
    sd -p {{'window.fetch'}} {{'fetch'}} {{http.js}}
  • Find and replace across a project changing each file in place:
    sd {{'from "react"'}} {{'from "preact"'}} $(find . -type f)

This is a tldr pages (source, CC BY 4.0) web wrapper for All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.