Use shell scripts for code backup and database backup

1, the actual is not to do code backup, but to upload the attachment backup, after all, the code on my side is mainly through the SVN control, do not need to backup, but in order to lazy, or the entire folder directly packaged.Name= "Your code file

Introduction to the Shell Basics of Linux (2)

8.6 Pipe break and job control:1, cat 1.txt |wc-l; Cat 1.txt |grep ' aaa '2. Ctrl Z pauses a task3. Jobs View background tasks4, Bg[id] The task to the backstage5. Fg[id] Transfer the task to the front desk6. Add & Drop the command back to the

The use of shell parentheses

Parentheses ():1. The commands in parentheses will be executed in a new sub-shell order, so the variables in parentheses cannot be used by the rest of the script. Multiple commands in parentheses are separated by semicolons, and the last command can

UNIX Shell Basics Summary (ii)

1. The relationship between Vim,vi and exVim does not need to install, VI for ex "Visual Mode", Vim is the advanced version of VI;2. Unix Shell shortcut keysctrl+a/e position the cursor to the head/tail of the commandctrl+u/k ctrl+y Paste ctrl+u/k

Getting started with Linux shell scripts

Two virtual machines, all to be detected1. is yum available2. Firewall default zone modified to trusted3. Whether the IP address is configured#######################################################Second, ordinary users (must restore the environment)

Shell script parsing nginx access log status code

1. Get nginx log access status code;Grep-ioe "http\/1\. [1|0]\ "[[: Blank:]][0-9]{3}" Nginx_app.api.zhaoyifen.ssl.logGrep-ioe "http\/1\. [1|0]\ "[[: Blank:]][0-9]{3}" Nginx_app.api.zhaoyifen.ssl.log |awk-f "[]+" ' {if ($2>=100&&$2=200&&$2=300&&$2=400

Shell Record-shell Script Basics (v)

The PS command in Linux is the abbreviation for process status. The PS command is used to list those processes that are currently running on the system. The PS command lists the current snapshots of those processes, which are those that are

Shell Programming (iv)

In this article we learned about the use of conditional selection statements in the shell. The next step is to learn the looping statements. In the shell, loops are implemented through the for, while, until commands. Let's take a look at each one

Shell Common Sense

   1 #!/bin/bash 2:   Shell Common Sense

Zephyr's Shell

1 PrefaceThe shell can deal with subsystems, and subsystems can provide many interfaces for external settings and read information.Below is the kconfig configuration of the shell, the use of the shell, and how to create a new shell command.It can be

Enterprise Interview Shell Entry script questions

WedgeRecently like the script so learn a little bit and solidify yourself.Simple Log emptying note! This is a test environment that can be emptied freely.Cd/var/logCat/dev/null>messagesecho "Logs cleaned up."One, can vim a file name example

Shell Basic Operators

Shell Basic OperatorsThe Shell, like other programming languages, supports a variety of operators, including: Relational operators Boolean operator String operators File Test Operators Native bash does not support simple

Shell condition Test

File Status Test -B filename Returns True when filename exists and is a block file (returns 0) -C filename Returns True when filename exists and is a character file -D Pathname Returns True

Shell Common Command Summary

Shell Common Command Summary1 ls command: List filesLs-la list all files and folders in the current directoryLS A * lists all files starting with the A letter in the current directoryLs-l *.txt lists all files with the suffix txt in the current

2017 the latest enterprise face Test shell (iv)

2017 the latest enterprise face Test shell (iv)First, the draw script (1) requires the following:1, write a script execution, enter the name, generate a random number 01-99 between the number;2, after entering the name, the screen output information,

Shell selection statement, loop statement

Judgment statement:If judging conditionThenStatement[Elif]Statement...[ElseStatementFi#!/bin/bashIf [$#-eq 0]Thenecho "Error"echo "can use this command like command file_name"Exit 4FiType= ' File $ | Cut-d '-f2 'Echo is a $TYPECase statement:Case

Linux Shell Programming Combat---to count the word frequency of words in a particular file

Method 1 : Using sedShell>cat A1.txt123a123,555456.333566 . 555!88,thisis a good boy.Shell>cat a1.txt|sed ' s/[[:space:]|[:p unct:]]/\n/g ' |sed '/^$/d ' |sort|uniq-c|sort-n-k1-r2 5551 This1 is1 good1 boy1 A1231 A1 881 5661 4561 3331 123Shell>Sed '

See the world from the Shell's eyes

(character) Expandeach time you enter a command, and then pressEnterkey, inBashbefore you execute your command,Bashwill be on the inputThe character completes several steps of processing. We already know two or three cases, how a simple sequence of

Shell script to get basic information about Linux server

Test Run Environment: SLES12SP2#!/bin/bash#系统名称;os_type=$ (Uname-o | awk ' {print ' | ' +} ')#系统位数; 32/64os_bit=$ (uname-m | awk ' {print ' | ' +} ')#内核发型版本kernal_version=$ (uname-r | awk ' {print ' | ' +} ')#系统版本信息sys_info=$ (cat/etc/issue | awk ' {

Shell Getting Started Note 2: string, array, echo, and printf

DescriptionThis is a note about http://c.biancheng.net/cpp/shell/.Shell StringStrings can be in single or double quotes, or without quotation marks.1 #!/bin/bash 2 3 # #字符串 4 5 #不加引号: 6 #无法出现; 7 echo a 8 echo a;b 9 #单引号: One #单引号里的任何字符都会原样输出,

Total Pages: 541 1 .... 284 285 286 287 288 .... 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.