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. 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 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
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
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.