folk.zone Wiki

a public knowledge base

Site Tools


terminal:scripting:sed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

terminal:scripting:sed [2026/10/23 16:00] – created - external edit 127.0.0.1terminal:scripting:sed [2026/10/24 10:26] (current) – external edit 127.0.0.1
Line 77: Line 77:
  
   * ''-i'' without backup is irreversible: test without ''-i'' first.   * ''-i'' without backup is irreversible: test without ''-i'' first.
-  * ''sed -i '''' is macOS syntax; GNU is ''sed -i'' (no arg). This repo's docs are +  * ''sed -i '''' is macOS syntax; GNU is ''sed -i'' (no arg). These pages assume 
-  written for GNU/Ubuntu.+  GNU sed on Linux.
   * ''sed -z'' treats input as NUL-separated: for filenames from ''find -print0''.   * ''sed -z'' treats input as NUL-separated: for filenames from ''find -print0''.
   * It processes line-by-line; multi-line matching needs ''N'', ''P'', ''D'': at that   * It processes line-by-line; multi-line matching needs ''N'', ''P'', ''D'': at that
terminal/scripting/sed.1792792850.txt.gz · Last modified: by 127.0.0.1