Linux Shell Advanced Tips

Source: Internet
Author: User


Linux Shell Advanced Tips (i)
Http://www.cnblogs.com/stephen-liu74/archive/2011/12/22/2271167.html
First, the input information is converted to uppercase characters before the condition judgment
Setting output level for debug information
Third, judging whether the parameter is a number
Iv. judging the parity of integer variables
Assign the shell command to the specified variable to ensure the portability of the script
Vi. the number of days elapsed from the current time period (January 1, 1970)

linux Shell Advanced Tips (ii)
Span style= "font-size:15px" >http://www.cnblogs.com/stephen-liu74/archive/2011/12/26/2272814.html
VII, non-direct reference variable
Eight, tips for using piping in loops
IX, Self-linking script
Ten, the use of the here document
Xi. gets the run time of the process (in minutes)
Span style= "font-size:15px" > 12, simulating the simple top command

linux Shell Advanced Tips (c)
Span style= "font-size:15px" >http://www.cnblogs.com/stephen-liu74/archive/2011/12/28/2276232.html
13, formatted output specifies the user's current running process
XV, verify that the input information is legitimate
16, integer validation
17, Determines whether the specified year is a leap years

Linux Shell Advanced Tips (iv)
Http://www.cnblogs.com/stephen-liu74/archive/2011/12/30/2279099.html
19. Format the output of the file as a specified width
20. Monitor users with too much disk space under the specified directory
21. Write a more readable DF command output script
22. Write a script to add a new user
23. Kill the user process for the specified user or specified terminal
24. Convenient way to judge user input (yes/NO)

Linux Shell Advanced Tips (v)
Http://www.cnblogs.com/stephen-liu74/archive/2012/01/01/2281814.html
25. Download the specified file via FTP
26. File Lock
27. Overwrite the entire disk with small files
28. Count the number of processes in the current system for different operating states
29. Floating-point verification
30. Statistics on the frequency of each word appearing in English articles

Linux Shell Classic Instance parsing--oracle startup script (top)
Http://www.cnblogs.com/stephen-liu74/archive/2012/01/06/2288470.html

Linux Shell Classic Instance parsing--oracle startup script (bottom)
http://www.cnblogs.com/stephen-liu74/archive/2012/01/08/2288699.html

Linux Shell Advanced Tips

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.