Not fine, and the shell's pipe to the pit.

I've used the bash shell, and it's not a short time. But I've never learned to shell, at least not so seriously as C + +. Usually write some basic script no problem, do not understand can also Google, Baidu. On the last day of 2014, it fell into the

Shell Script Learning 11 Shell Comment

Lines that begin with "#" are comments, which are ignored by the interpreter.There is no multiline comment in sh, only one # is added to each line. Can only be like this: #-------------------------------------------- # This is a

Shell Script Learning 12 shell string

Strings are the most common and useful data types in shell programming (except numbers and strings, and no other type works well), strings can be in single quotes or double quotes, or without quotes. The difference between single and double quotes

Linux Shell Date loops by Time fragment

Remember that once wrote the script by the days of the cycle, the real date can be any day, like this:1start_day=$ (Date-D"$TODAY -1days"+%y%m%d);2 3end_day=$ (Date-D"$TODAY-${cycle}days"+%y%m%d);4 5 for((; $END _dayDate-D"$END _day +1days"+%y%m%d )

Simple shell----A little exercise in MOS

Think of their own many pictures and code in the last time the hard drive was lost, Heart is the pain ...This simple shell code was placed in a temporary PDF document that was preserved ... Amen... Today want to write a simple database, feel is not

The cut of shell programming

Cut to the Unit of action in the file,according to the conditions you set, cut out some of the contents of the print. Output to standard output and will not be saved to any fileThe-B range determines the range based on the byte-C range according to

Frequently used shell commands (updated in succession)

It's just my personal use, not all of it.1. Get the return value in front of the pipelineEcho ${pipestatus[0]}e.g.[Email protected]:~# date1 | echo 22No command ' date1 ' found, did your Mean:command ' date ' from the package ' coreutils ' (main)

Using date operations and comparisons in the shell

#!/bin/bashstartdate= "$" enddate= "$" date_fmt= "%y%m%d" source ./log.shexport debug= "true" function  showusage ()  { warn  "warn "------------------------ Usage ---------------- -------------  "warn "  Syntax:  checkInputDates.sh   "warn " "warn 

Shell's Read command

I. OverviewThe read command receives input from a standard input (keyboard), or other file descriptor. After the input is received, the Read command puts the data into a standard variable.Ii. examples of use (here are just a few common options)1.

Shell script (i)

1. IntroductionShell (shell) is the code that the Linux system uses to parse the user's commands into the computer's ability to execute, which is then handed to the kernel for execution by the kernel. The types of shells supported by this Linux

[Notes] Linux shell considerations

1 $1,$2,$3 respectively represents the first, second, and third parameter of the input.2 If you want to add then elif endif end to write fi3 do end to correspond to the done shell there are brackets in the notation such as: for[]4 [email protected]

The shell script reads multiple files line by row and corresponds

#!/bin/bashFor i in ' seq 448 'DoAaa= ' Sed-n "$i" P num.txt 'Bbb= ' Sed-n "$i" P text.txt '/root/cooper/sms.pl $aaa $BBBDoneNum.txt recorded 348 numbers.348 fields are recorded in the Text.txtThe effect is to take the first row in the Num.txt as

Shell sort (hill) algorithm--java

First, take an integer less than n D1 as the first increment, dividing all the records of the file into D1 groups. All records that are multiples of the DL are placed in the same group. The direct insert sort is performed in each group first, then

Shell sort (reduce incremental sort)

Core idea: First determine an element interval number gap, and then the sequence of participating in the order of this interval from the beginning of the 1th element into a number of sub-sequences, that is, all positions spaced gap is considered as

Gzexe encrypts shell scripts 01

Gzexe encrypts shell scripts 01 Gzexe encrypts shell scripts 01 I. Introduction Most of the time, our script involves some private information, such as the user name, password, or other important information. We use some encryption methods to block

Shell encryption-shc Vulnerability

Shell encryption-shc Vulnerability Recently, I have been compiling Shell scripts for customers to use. I will inevitably encounter some sensitive information that I don't want them to know. So I used Shc script encryption to compile binary files

Shell programming cut

Shell programming cutCut refers to the unit of action in the file. Based on the conditions you set, part of the content is cut and printed out. Output to standard output, not saved to any file-B Range: determined by byte range-c range: determined by

Shell programming cut, shellcut

Shell programming cut, shellcutCut refers to the unit of action in the file. Based on the conditions you set, part of the content is cut and printed out. Output to standard output, not saved to any file-B Range: determined by byte range-c range:

Linux automatically installs JDK shell script, linuxjdkshell

Linux automatically installs JDK shell script, linuxjdkshellAutomatically install the JDK shell script in Linux A: The machine running this script, Linux B: The machine on which JDK is to be installed, Linux First, log on to machine B where jdk is

Shell programming control structure: expr, let, for, while, until, shift, if, case, break, continue, function, select, exprcontinue

Shell programming control structure: expr, let, for, while, until, shift, if, case, break, continue, function, select, exprcontinue 1. expr calculates the integer variable value S = 'expr 2 + 3' The operator numbers and parameters must be separated

Total Pages: 541 1 .... 388 389 390 391 392 .... 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.