User Tools

Site Tools


sed:sed

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sed:sed [2020/08/17 10:50] 192.168.1.1sed:sed [2020/08/17 10:59] (current) 192.168.1.1
Line 8: Line 8:
  
 ---- ----
- 
-===== Typical Usage ===== 
- 
-^Example Usage^Comment^ 
-|cat filename<nowiki> | </nowiki>sed '10q'|Uses piped input.| 
-|sed '10q' filename|Same effect, avoids a useless "cat".| 
-|sed '10q' filename > newfile|Redirects output to disk.| 
- 
----- 
- 
-===== Quoting Syntax ===== 
- 
-The preceding examples use single quotes ('...') instead of double quotes ("...") to enclose editing commands, since sed is typically used on a Unix platform. 
- 
-Single quotes prevent the Unix shell from interpreting the dollar sign ($) and back-quotes (`...`), which are expanded by the shell if they are enclosed in double quotes. 
- 
-Users of the "csh" shell and derivatives will also need to quote the exclamation mark (!) with the backslash (i.e., \!) to properly run the examples listed above, even within single quotes. 
- 
-Versions of sed written for DOS invariably require double quotes ("...") instead of single quotes to enclose editing commands. 
  
 [[SED:Introduction|Introduction]] [[SED:Introduction|Introduction]]
Line 59: Line 40:
  
 [[SED:Reverse|Reverse]] [[SED:Reverse|Reverse]]
 +
 +[[SED:Special Characters|Special Characters]]
  
 [[SED:uuencoding|uuencoding]] [[SED:uuencoding|uuencoding]]
sed/sed.1597661421.txt.gz · Last modified: 2020/08/17 10:50 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki