I rookie a, first contact with the Linux shell script;Shell script, the simplest function is to write a lot of instructions together, so that users can easily be able to execute multiple commands, and shell script provides arrays, loops, conditions
Common shell variables are: custom variables, environment variables, positional variables, predefined variables, and so on.Variables: Can be stored in a variable value of space, can be changed by different environments, is a variable value. Echo
grep toolThe shell command line is convenient and the tools it supports are inseparable, and the grep tool is a search artifact that can search all the information in all the files in the entire Linux system.The flexible use of grep is inseparable
1. BackgroundWhen it comes to shell programming, we have to mention regular expressions, the "old guy" that can look like a new programming language, and let a lot of our just-in-the-box programmers love and hate because they can actually write
#Dialog +shell IntroductionDialog+shell combined use, square can reflect the effect of Dialog graphics, in the operation of the time, the use of graphical interface, you can give you a more intuitive feeling, I believe you will like his 650)
Ask for 1-100 and
A. Non-recursive1 #!/bin/bash 2 sum=0 3 str= "" 4 for I in {1..100} 5 does 6 let sum+=i 7 str+= "$i +" 8 done 9 echo ${str%+}= $sumOutput Result:650) this.width=650; "src="
echo command: Used primarily for output in the shell 1.-N does not wrap the display result (by default, the line is wrapped) 2.-E "" supports using some special characters in double quotesThe usual special characters are\a a warning sound; \b
Linux Shell Process Control
Guide
Unlike the Java, PHP, and other languages, the Linux shell has its own process control statements, including conditional statements (IF), loop statements (for,while), and SELECT statements
An efficient development environment is undoubtedly of great help to our daily work, and time is saved by these tiny details.Next, I'll show you how to configure ZSH+INCR to create the ultimate and efficient development environment.First, let's look
Next: Start the ultimate efficiency Shell Tour (1), and then I'll introduce another useful plugin for Oh my zsh:Zsh-autosuggestionsThe function of the plugin is to display the input History command, a very sharp feature!!The configuration method is
Skillfully using the delimiter delimiterWhere to enter large pieces of textAutomatic selection and entry of placesAccessing the database[Email protected] ~cat > OUT.txt EOF> 123jl412 3> o> EOFTool Usage TipsUniquely identifiesDate: Creates a log
Monitoring Programspeeking at the processesWhen a program runs on the system, it's referred to as a process. To examine these processes, your need to become familiar with the PS command, the Swiss Army knife of utilities. It can produce lots of
Exercise one: Write a simple progress bar with a shell scriptThe code is as follows:650) this.width=650, "title=") ho7oa}6@[z~ @MTZJH2YZ (x.png "src=" http://s3.51cto.com/wyfs02/M00/82/F1/ Wkiom1dmv0nzcwgdaabjd93_rgs506.png "alt="
Create loops in shell scripts to append echo content redirection to a file650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/82/E7/wKioL1dj6XHwzJ-tAAAoItNjmwc457.png-wh_500x0-wm_3 -wmp_4-s_2295541797.png "title=" qq picture
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.