Git branch view all local branches git status View current status git commit commit git branch-a view all branches git branch-r view all branches git commit-am "Init" commit and raise Release git remote add origin [Email protected]:ndshowgit push
As an example:gawk 'begin{var["a"]=1var["g"]=2var["m"]=3var["u"]=4Asort (var,test) for(Iinchtest) Print"Index:"I"-Value:", test[1]}'When you hit enter, you can output4 1 1 12 13 1 The script in front of the time because the electronic version
1. Core-Responsible key functionssystem memory management, software program management, hardware Device management, file system management2.GNU tool ChainThe Linux kernel is the core of the system, controlling how memory, programs, and hardware
Local Variables :Set Varname=value: scope for the entire bash processLocal Variables :Local Varname=value: Scope is the current code snippetEnvironment Variables :Export Varname=valueor Varname=value export VARNAMEPositional variables :$ ...Special
The method of variable passing between awk and Shell awk is a good thing to do with Linux, and it's very handy to work with some text files. under Linux, it's often the case that you deal with the shell , so the variables between awk and The shell
Functions are often used when writing programs, and general development tools have a rich library of functions. But sometimes you need to customize the function to meet our needs.In Linux, the same is true for shell scripts, which sometimes use
1. Simulating the Linux login shell#/bin/bashEcho-n "Login:"Read nameEcho-n "Password:"Read passwdif [$name = "CHT"-a $passwd = "abc"];thenecho "The host and password is right!"else echo "Input is error!"Fi2. Compare two number sizes#/bin/bashecho
Modify the previous Code1. Determine if it is hello, and if so, show "Hello, how is it?" ;2. If no parameters are added, the user is prompted to use the parameter release method;3. If the added parameter is not hello, the user is reminded that only
The while loop is used to continuously execute a series of commands and to read data from the input file; the command is usually a test condition. The format is:While Commanddostatement (s) to being executed if command is TruedoneThe command
Since the use of Mac after the various configurations, the premise of this article is to use Tmux friends, introduce a god plugin zsh, first of all why use it:
Crtl + Z Displays the PID of the process when the process is suspended, so that
The Shell has three kinds of if ... else statements:1.if. FI statement;2.if ... else ... fi statement;3.if. Elif ... else .... fi statement.If ... fi statementSyntax for the IF ... else statement:if [Expression] Then If Truefi Note: There must
The recently built SVN service does not know why the service is always turned off (if you do not know how to build SVN can refer to the SVN version control software under Linux ), so a daemon is implemented with shell scripts. Used to monitor if the
First name the shell command as a. sh fileSave the above code as test.sh and CD to the appropriate directory:chmod +x./test.sh #使脚本具有执行权限./test.sh #执行脚本If an error/bin/bash^m:bad interpreter:no such file or directoryOne of the reasons for the
#!/bin/bashdeclare var="XXX" #without space and use one =#1.judge Whether the assignment statement returns trueEcho"----------------------test Assignment in bracket--------------------------------"[var="yyyy"] && Echo"Success"Echo"End" #Success["$
Shell command and Process ControlThere are three types of commands that can be used in shell scripts:1) Unix command:Although you can use any Unix command in a shell script, there are some relatively common commands. These commands are usually used
1 Create Shell script FileTo create a shell script file, you must specify the shell you want to use on the first line in the following format:#! /bin/bashThen add a comment to the shell file that explains what the script file is used for, who
Spatial information for file systemsDF CommandDfcommand provides a single-line summary,a row shows the used and available space for a loaded system of asking the price.the unit depends on the system,some use blocks,some of them areKB.Most modern
1 Invoke MdoelsimIn order to open Modelsim automatically, it's better to use a shell script to invoke Modelsim.1 #!/bin/bash 2 #----------------------------------------------------------------------------3 # Invoke Modelsim 4 #-----------------------
1. Truncation function file=dir1/dir2/dir3/my. file.txt ${file #*/}: Remove the first/its left string: dir2/dir3/my. file .txt${ file ##*/}: Take out the last/and left string: my.file .txt${ file #*.}: Take out the first. and its left string:
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.