Preface: In Ubuntu to do things under the terminal to run some commands, or in vim to do some operation, naturally need to use some small knowledge points, not how to systematically see "bird Brother's dishes", basically encountered what the problem to achieve what function, find blog, learn the knowledge point, Some scattered, then a little accumulation of summary.
1. Batch-processing command SH:
Need to run multiple commands at the terminal, write those commands into a file, and name xx.sh, the terminal run SH xx.sh can break, the terminal will be a run xx.sh file inside the command.
2.echo:
In the batch command, you need to use the command to output some of the things you want to the terminal, echo can be broken, like python inside the print, under the terminal echo "================" like the Python bid to write down how the program run the sentence Print 30* "*".
3. Pipeline redirection >,>>:
> is the output to the specified file, such as the file already exists and will be re-written, the original content of the file will not be retained.
>> is to append the output to the file, the original content of the file will be preserved.
$ ls >> log.txt or $ ls > log.txt
In addition there are script,tee and other commands, idle time and then systematically look down to write down.
4.grep,awk,sed:
5. To be Continued ...
#=============================
Reference: "Brother Bird's Linux private cuisine"
Accumulation of small knowledge points used in Linux systems