Special symbols and their escapeAs you know, a shell command is made up of a command name and its arguments, for example cat testfile , where cat is the command name and Testfile is a parameter. The shell passes the parameter testfile to the cat
Note content:L 8.10 Shell special symbol cut command L 8.11 sort_wc_uniq command L 8.12 tee_tr_split command L 8.13 Shell special symbol Note Date:2017.8.168.10 Shell special symbol cut command Special symbols:1.* Any arbitrary character wildcard
command-line editing:Cursor Jump:CTRL + A: Skip to the beginning of the commandCtrl+e: Jump to the end of the command lineCtrl+u: Delete the cursor to the beginning of the command lineCTRL+K: Delete the cursor to the end of the command lineCtrl+l:
Variable names can only contain numbers, letters, and underscores, because some variables that contain other characters have special meanings, and such variables are called special variables.For example, $ represents the ID of the current shell
Special characters in bat and how to handle them as characters in bat (2014-02-27 21:16:55) reproduced
Tags: bat special characters
Category: Develop
Special characters in bat and how to handle them as characters
Introduction
I'm from the old CMD. EXE command line to a good powsershell. EXE has been there for some time. You may know that the new Windows PowerShell can run any old commands. However, the name or syntax of some old commands may cause problems.
When learning special characters, you may encounter shell special character problems. You can develop the Fedora Core Linux for Linux in the community-supported way, the development team of Red Hat Linux will continue to participate in the
Shell special Characters
* Any of the characters
? Any one character
#注释字符
\ de-Semantic characters
| pipe character
$ variable prefix,!$ combination, regular inside means end of line
Multiple commands are written to
Linux Command Line editing common shortcut keys (practical, General), linux Command Line
This article describes common shortcut keys for Linux Command Line editing.
Linux Command Line editing shortcut:
History display command history list
← (Ctrl +
Shell Special Symbol Cut command
Special symbols* wildcard characters, any of any character? Any one character# comment Characters\ de-Semantic charactersC=\ $a \ $bEcho $c| Pipe characterCat 1.txt |lessCat 1.txt |moreCut intercept stringShow
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.