Linux Common Shell command w

WC: View File Statistics usage: $ WC filename1. $ WC fileName$ WC FileNameX Y Z/desktop/helloX: Indicates the number of rowsY: Indicates the number of wordsZ: Indicates the number of bytes/desktop/hello: Indicates file name2. $ wc-l FileName-l

Bash Shell Programming Essentials Summary

I. Case ORDERCase variable invalue1)Command (s);;value2)Command (s);;*)Command (s);;EsacIf the case variable is not matched, the program executes *) after the statement.Shell wildcard and vertical bar (|) are allowed as the OR operator in case

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

Shell Small Script

Use the awk command to combine two lines of the same name in the following two files.A file:Han Hailin 21 years oldHailin Korea 23 years oldHan Linhai 22 years oldLin Hai Han 24 years oldB File:Han Linhai MaleHailin Han NanHan Hailin MaleLinhai Han

Shell Programming Topic Exercises

1. Write the shell script, calculate 1-100 's and;650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/71/B2/wKiom1XWy-eBa3uqAAENi2u4ldc587.jpg "title=" 1.jpg " alt= "Wkiom1xwy-eba3uqaaeni2u4ldc587.jpg"/>2. Write the shell script, ask for a

Gitlab remote backup of Linux shell scripts

Note: Gitlab is a git service program that has a Web graphical interface and a range of management tools, specifically detailed to Google it.This can be said to be the last "Linux shell script Atlassian Confluence Remote backup method" of the sister

Linux shell common shortcut keys

This post is from Chinaunix Lovesaka's > original address: [url]http://bbs.chinaunix.net/thread-846189-1-1.html[/ URL] Very early read the content here, the reason will find this article, is because my Linux mentor, There have been a number of

Shell script: Create function and specify directory to download

Write a script:1, create a function, can accept two parameters:1) The first parameter is a URL, you can download the file, the second parameter is a directory, that is, the location of the download after the save;2) If the user-given directory does

Shell command Line Quick Edit command

CTRL r: Command line appears reverse-i-search, input character will match command in input historyCTRL P: Go ahead and look through historyCtrl N: Looking back over historyCtrl A: Command headerCtrl e: Command line endCtrl F: Jump forward one

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 Digital Computing

Directly on the script,Use $ (()) and $[] for numeric calculationsNumerical comparison:N1-eq n2 Check if N1 equals N2 n1-le n2 check N1 is less than or equal to N2N1-ge n2 Check if N1 is greater than or equal to N2 n1-lt n2 check N1 is less than N2N1

SSH login of common shell in work do not enter "yes"

ip= "192.168.5.166"SSH $ip-o stricthostkeychecking=no//SSH login do not enter "Yes"Port= "26092"Pid= ' Netstat-anlp|grep $port |awk ' {print $7} ' |awk-f '/' ' {print '} 'Pname= ' ps-ef|grep $pid |grep-v grep|awk ' {print $NF} 'Dir= '

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

Logon shell and non-logon shell read file procedure

Logon shell and non-logon shell read file procedureLogin:/etc/profile→/etc/profile.d/*.sh ~/.bash_profileNon-login: ~/.BASH_PROFILE→~/.BASFRC→/ETC/BASHRC#soure. Bash_profile Manual Update/etc/profile valid environment variables for general

The expression of the Linux shell

Strictly speaking, there is no concept of an expression in the shell. The shell itself is really just a collection of commands, and of course it is not a random heap, but a certain organization. But this organization is not so rigorous, so this

2.2-shell Array

A= (1 2 3 4 5) define an arrayecho $a show only 1 and cannot display all elements of the entire arrayecho ${a[@]} displays all elements of the entire array, and @ can also be written as *echo ${a[0]} displays only the first element in the array,

"Dynamic Domain name resolution tool" tunnel, domestic version of Ngrok, peanut shell can sleep

In the author's series of development tutorials, there is a relatively basic and important section: Development debugging. In the article I recommend two dynamic domain name resolution tools to deploy the local development environment as a server,

Peanut shell and network address translation

Network address Translation (NAT) has a port translation called NAPT that is network addressWhat NAT is:Devices inside the network are assigned private IP addresses, but NAT-enabled routers retain one or moreAn Internet IP address that is valid

Array of Shell scripts, shell scripts

Array of Shell scripts, shell scripts #! /Bin/bash # The operations on arrays in the shell that you must know. Arr = ("hello" "word" "you" "are" "a" "good" "boy") # arr = ('LS') # I like this method. Echo "------- for ----------------" for I in $ {

Total Pages: 541 1 .... 253 254 255 256 257 .... 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.