The essential point in programming is debugging, Shell script with its powerful function is desirable, of course, its powerful is not only embodied in the language of the implementation function, more powerful is its debugging function, below, I
Task 5– Add Savefolder, Navpanepinnedstate, Icon, and FolderType command
These three commands share common behavior. First, users can use these commands to query the current state of the library simply by providing the name of the library. Second,
What is login Shell: Login shell can be used by user login, such as/bin/bash,/bin/sh,/bin/csh ... The general Linux Default User shell is bash, which means you can log in and write commands.
Non-logon shell: The classic/bin/nologin is a non-login
These two days, because the work needs to do some of the process of work, look at some of the online examples, mostly through the way of pipeline files to achieve, and then think about it without so much trouble ...
The following is a simple
Installation and Configuration
Linux and OS X basically can be installed through the source to download the source code compiled, not difficult.
This is what Ubuntu says:
The code is as follows:
sudo apt-get install fish
Get into fish from bash
Many friends of the notebook in less than a year, the appearance of the wear is very strong, it is very regrettable. As long as a little measure, you can effectively protect the appearance of your laptop. You know, whether it is mobile phone or
Access parameters
You can visit the command-line argument via PROCESS.ARGV, which is an array containing the following:
[Nodebinary, Script, arg0, arg1, ...]
That is, the first argument starts with Process.argv[2], and you can iterate through all
Editor's note: This article introduces a design idea and process. Suitable for a certain fireworks basis for learning, for reference.
Accidentally saw the Netizen June Sea to write an eggshell beauty Photoshop tutorial (
Click to view, the idea is
The company's recent server testing, the need to constantly adjust the system time, one or two is ok half, a little more points, on a variety of entanglements, the author of these several sets of the author is going crazy. Eldest brother: All speed
Avoid common problems with timed task scripts
Many scripts are actually used in the form of timed tasks rather than hand-run. However, scripts that implement the same functionality may encounter different problems in both modes of operation.
A
Reading slow, easy to forget, on the Internet to find examples to do, pondering the examples do not understand, and then continue to Baidu.The importance of shell scripts under Linux is not much to say. Starting with the first example:#!/bin/"Hello
Bo main name: Li ChangmingBlog Address: http://keep88.blog.51cto.comThis note is from the old boy books: Learn Linux OPS Shell programming with old boysSpecial extension variables1. ${parameter:-word} Functional PracticeThe role of ${parameter:-word}
Shell BasicsFirst, the variables in bash1, the definition of the variable: The variable is the memory unit of the computer, where the stored value can be changed.2, the variable's setting rule: The variable name cannot begin with the number, the
The Shell implements a simple calculator function with the following script:[[email protected] scripts]# Cat Jisuan.sh#!/bin/bashprint_usage () {printf $ "usage:$0 NUM1 {+|-|*|/} num2\n" Exit 1} #判断传入的参数是不是3个if [$#-ne 3] then print_usagefifirstnum=$1
The read command is used to receive input from the keyboard's standard input and other files, and after the input is entered, the Read command places the data in a standard variable.Example 1:#!/bin/bashRead-s-P "Enter you password:" Password #-s:
Today, a friend suddenly asked me in the shell, how to compare floating point and integer, but I asked a Leng, in the work did not encounter this scene. We also know that the calculation of numbers in the shell is usually converted to integers, such
Regular expressionsJob One: organize regular expression BlogsRegular expressionsA regular expression is the rule of a string of characters in a class word.GrepThe grep command is useful in situations where a pattern-based search is performed on the
In writing shell scripts, we need to use a variety of special symbols, through these special symbols can make the code we write more concise and efficient, here are summarized below:1. {} curly braces:Usage One: Wildcard extensionEg:ls
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