Application of reverse quotation marks (') in Linux shell
The quotation mark (') is located at the top of the Tab key of the keyboard and the left side of the key 1. Note the difference between it and the single quotation mark (') on the left side of the Enter key.
The reverse quotation mark (') is used to replace commands in Linux. Command replacement means that shell can insert the standard output of a command to any location in a command line.
For example:
Bkjia@www.bkjia.com :~ $ Date
Wednesday, October 29, 2014 15:14:46 CST
Bkjia@www.bkjia.com :~ $ Echo 'date' | cut-d'-f1-4
Wednesday, October 29, 2014
We can see that the date command in the back quotes ''is executed first, and then the date command output is replaced with the corresponding position.
Very valid metacharacters are often used in shell.
Shell programming
Replace Linux Shell Parameters
Shell for parameters
Pass Linux/Unix Shell parameters to SQL scripts
Introduction to parameter passing methods in Shell scripts
PASS command line parameters through Shell scripts
Linux Shell wildcards, escape characters, metacharacters, and special characters
This article permanently updates the link address: