User Tools

Site Tools


sed:introduction

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:introduction [2020/08/17 10:55] 192.168.1.1sed:introduction [2022/06/14 08:20] (current) – [Use of '\t' in sed scripts] peter
Line 12: Line 12:
 ===== Quoting Syntax ===== ===== 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.+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.+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.+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.+Versions of sed written for DOS invariably require double quotes **("...")** instead of single quotes to enclose editing commands.
  
 ---- ----
Line 28: Line 28:
 However, most versions of sed do not recognize the '\t' abbreviation, so when typing these scripts from the command line, you should press the TAB key instead. However, most versions of sed do not recognize the '\t' abbreviation, so when typing these scripts from the command line, you should press the TAB key instead.
  
-'\t' is supported as a regular expression metacharacter in awk, perl, and HHsed, sedmod, and GNU sed v3.02.80.+<WRAP info> 
 +**NOTE:**  '\t' is supported as a regular expression metacharacter in awk, perl, and HHsed, sedmod, and GNU sed v3.02.80. 
 +</WRAP> 
  
 ---- ----
sed/introduction.1597661738.txt.gz · Last modified: 2020/08/17 10:55 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki