1. DemandThe collection task constructs the storage. To achieve the title, time, content and other information of more than 200 Web site collection information configuration, and inserted in MySQL.2, Implementation Step 1: Manual implementation of
First, log in to Git and create a new repositorySecond, in the "Repository name" column to fill in the name of the version of the warehouse, such as "test", description column is a description, can be filled.The default access is public, click the
Conditional judgment, control structure:Single Branch if statementif judgment condition; ThenStatement1Statement2...FiTwo-branch if statement:if judgment condition; ThenStatement1Statement2...ElseStatement3Statement4...FiMulti-Branched if
Reference:Http://www.cnblogs.com/tuzkee/p/3755230.htmlhttps://segmentfault.com/q/1010000000156870Http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-scriptAvoid using which, which can be implemented with the following
Shell script Programming 1. Basic concepts
In the shell # as a comment, using exactly the same method as in C //
The shell can be ; executed by executing two commands in the same line, such asls ; pwd
The script is executed
Test 101-le 99101 is less than or equal to 99Similar special symbols are also available.-eq "Judgment is equal"-ge "judgment is greater than or equal to"-lt "judgment is less than"-ne "judgment is not equal to"You can use the command "[]" instead of
SSH (Secure Shell) is a set of remote operation of Linux and file upload and download software,Very useful, almost all Linux programmers in a software company will use SSH.Preparatory work:: Http://files.cnblogs.com/hongten/SSHSecureShellClient-3.2.9
1, read from file whileRead Line Do Echo "line= $line" Donefile. txt2, converts a string to an array, and iterates through STR="html, CSS, JavaScript, java, PHP, go, python"arr= (${str//,/ }) forIteminch${arr[@]} Do Echo "item= $item" Done3,
Brief summary:
Single quotes:What you can say is what you see is what you get: the contents of a single quotation mark are output as-is, or what you see in single quotes is what you output. double quotes:The contents of the double quotation
First, what is the bean Shell
BeanShell is a scripting language that conforms fully to the Java syntax specification and has its own syntax and methods.
BeanShell is a loosely typed scripting language (this is similar to JS);
1.psReview the process. It only shows the processes that are currently user-owned under the current console, including bash and PS commands themselves.2.topReal-time detection process. The first line of the output shows an overview of the system
View FilesStat can list all information about the target fileStat com_id.txt File: ' com_id.txt ' size:22 blocks:8 IO block:4096 Regular filedevice:fd00h/ 64768d inode:5056098 links:1access: (0644/-rw-r--r--) Uid: (0/root) Gid: (0/root) access:2016-
First, the basic writing process of the practice script:1. Determine the task and the command to complete the task2. Scripting Integration Tasks3. Authorization and test executionSecond, exercise:A. First I create a directory, put the script we
When using some basic shell commands, the machine needs to interact with the person to determine the execution of the command. such as CP Test.txt Boo/test.txt, will ask whether to overwrite? SSH remote login, you need to enter a manual password
the speed of software development exceeds that of any one industry. Software practitioners have climbed, and software users have gone deep into the countryside (using smartphones to watch programs and chat videos). 1 Linux and Shellas a user of
Personnel pay before the payroll is sent to our mailbox, look at the personnel sister paper is a kind and beautiful gu cool, so wrote a shell code to achieve bulk text to each mobile phone number. Not much to say, on the code, in fact, very simple,
JMeter parametric section refer to previous articleShell parameter Description: Number of threads, $: Total concurrency Rampup time, $ $: script run time, $4: Each script cycle duration $: So the cycle duration#!/bin/bashReport_time= ' Date '
DNS Cluster ( multiple servers synchronize one primary DNS information, easing the pressure on the primary DNS )Configure the secondary DNF server (so that it can synchronize primary DNS, sharing the pressure of the primary DNS :)Modifying a
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.