User Tools

Site Tools


wiki:quoting

Differences

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

Link to this comparison view

wiki:quoting [2017/12/05 22:53] (current)
Line 1: Line 1:
 +====== Quoting ======
 +You can prevent the shell from interpreting a metacharacter by placing a backslash (\).\\
 +In this way the metacharacter become a normal character.\\
 +e.g.\\
  
 +<code bash>
 +cp file1 file\?
 +</​code>​
 +file1 will be copied to file?
 +You can also insert the metacharacter between quotation marks.
 +<code bash>
 +   ls /​dev/"​tt*"​
 +</​code>​
 +Compare the difference
 +<code bash>
 +   ls /dev/tt*
 +</​code>​
wiki/quoting.txt ยท Last modified: 2017/12/05 22:53 (external edit)