git Shell common commands

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

The connector for Shell script is a comma, not a period in English

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

linux-"Linux command line and Shell script programming encyclopedia" read the notes

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

Variable functionality in the shell

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

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

Custom functions in shell scripts

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

Simple and practical shell script

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

Shell Scripts-Conditional statements, case statements, function functions

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 SED of shell programming

First, sed (Stream Editor)1, positioning line:Sed-n ' 12,~3p ' pass #从第12行开始 until the next 3 multiples line (12-15 lines)Sed-n ' 12,+4p ' pass #从第12行开始, 4 consecutive lines (12-16 lines)Sed-n ' 12~3p ' pass #从第12行开始, interval 3 lines output once (12

Shell Learning 18-shell While loop

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

Shell God plugin for Mac Zsh

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

Shell script: If-else

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

Linux shell Script Daemon monitors SVN services

svn

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

Execute shell command

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

The assignment statement and Judgment statement in parentheses judgment in shell programming

#!/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 Control

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

Shell Programming Basics

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

Shell learns 46 days----file system spatial information df and DU commands

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

The shell script of Qs

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

The magical application of ${} in the shell

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:

Total Pages: 541 1 .... 198 199 200 201 202 .... 541 Go to: GO

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.