Bash-sed-examples

From I Will Fear No Evil
Revision as of 17:56, 3 December 2021 by Chubbard (talk | contribs) (Created page with "Examples of using sed for different jobs * Remove all of a string until first match <pre> echo "1=2=3" | sed 's/[^=]*=//' 2=3 </pre> [https://unix.stackexchange.com/questions...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Examples of using sed for different jobs

  • Remove all of a string until first match
echo "1=2=3" | sed 's/[^=]*=//'
2=3

Stackexchange Details