I. wildcard characters
* Represents any character ranging from 0 to infinite.
Example: Find the file name starting with cron under/etc/
[Root @ instructor Desktop] # ls/etc/cron *
/Etc/cron. deny/etc/crontab
/Etc/cron. d:
0 hourly raid-check
The case statement is suitable for applications that require multiple branching. The case Branch statement is formatted as follows: Case $ variable name inMode 1)Command sequence 1;;Mode 2)Command Sequence 2 ;;*)Sequence of commands executed
Source: http://blog.sina.com.cn/s/blog_62a151be0100x9rn.htmlFourth chapter basic Skills-Special symbolsThe quickest way to learn to write script is to watch someone else's script file. However, although this method is practical, it is often "less
I. Shell special symbol, Cut command* Any character[Email protected] ~]# Ls/tmp/*.txt/tmp/1.txt/tmp/2.txt/tmp/q.txt[Email protected] ~]#? Any one character[Email protected] ~]# Mkdir/tmp/test1[Email protected] ~]# Touch/tmp/test1[Email protected] ~]#
The quickest way to learn to write script is to watch someone else's script file. However, although this method is practical, it is often "less effective" or even halfway to the shell's basic cognitive deficit. The first problem is that you don't
I. Special symbols in the shellWhile you are learning Linux, you may have been exposed to a special symbol, such as "*", which is a wildcard symbol that represents 0 or more characters or numbers.Special characters that are commonly used:1, *
Five Week fifth session (January 12)
8.10 Shell Special Symbol Cut command
8.11 Sort_wc_uniq Command
8.12 tee_tr_split Command
8.13 Shell Special Symbol
Related Quiz title: http://ask.apelearn.com/question/5437
Extended
Special symbols for Liunx
Represents a number of letters or numbers? Any one character"#" Comment\ de-Semantic characters| Pipe character
1.* represents any arbitrary character or number[[email protected]/]# ls *.txt1.txt[Email
There are a lot of special symbols in the Linux shell, which we should pay special attention to when we write shell scripts: On the one hand, we need to know the use of these special symbols, which can achieve a multiplier effect, but on the other
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.