Shell dynamic parsing of SQL Binlog

#!/usr/bin# Setting up a database connection conn='Mysql-hhost-pport-uusername-ppassword'#获取最新的binlog文件logfile=$ ($conn-E"Show Master Logs"|Tail-N1|awk-F" " '{print $}') #设置a为1, the user's bottom of the judgment a=1#while循环 while true

Linux shell for multi-process

As a database DBA for Linux systems operations or Linux, there are many times when you need to write scripts to help us achieve some of the requirements, and if some content within the script can try parallel processing, it will greatly improve the

(Linux shell) Chapter II-The Joy of command (i)

Article from my personal blog: (Linux shell) Chapter II-The Joy of command (a)In the previous chapter we described some of the syntax that we need to be aware of in the Linux shell, and then we begin to understand the common commands of the Linux

Two choice structure of Linux shell programming

The second of Shell programming learningFirst, Bash's condition testTest method, or test writing:Test EXPR[EXPR][[EXPR]]For example: Test whether the variable user_name is rootTest $User _name= "root"[$User _name = = "Root"][[$User _name = =

Linux shell script output with color text

Linux shell script output with color textThe color of the text terminal can be generated by using the ANSI unconventional character sequence.Example: "Echo-e \033[44;37;5m BLUE \033[0m""Echo-e \033[44;37;5m BLUE \033[0m BLACK"The area that needs to

Linux shell scripts get and replace specific content in files

1. Get specific information from a string of stringsRequirement 1: Get the IP profile of the native IP:menu.lst as the system mirror, and need to obtain the native IP information from the file (get information from the files)1Timeout12 default 03 4

Exec in Shell

EXEC command in Shell 1.-exec parameter in find In the current directory (including subdirectories), find all TXT files and find the rows containing the string "bin" Find./-name "*. txt"-exec grep "bin "{}\; Delete all TXT files in the

Shell script while read line causes the loss of tabs

Description: Although the problem is not big, it is really disgusting. My goal is to process access logs. Logs are separated by \ t for easy processing. data needs to be filtered and processed. I don't want to filter it into a temporary file and

Shell programming (7) --- usage of SED

Sed: A stream editor or a row editor. Sed processing process: sed reads a row from the source file and places it in a temporary buffer zone. This buffer zone is called a mode space and uses the corresponding mode to process the mode space, the

Shell script)

What is shell scripts? What is shell script (ProgramScripts? Literally, we divide it into two parts. In the "shell" section, we have mentioned in bash that it is a tool interface that allows us to communicate with the system under a text interface.

Linux Shell advanced skills (2)

VII. non-direct reference variables: Three methods of assigning values to standard (direct) variables are provided in shell:1. assign values directly.2. Store the output of a command.3. Store the results of a certain type of computing.However, all

OEP processing of acprotect in encrypted Shell

Processing of acprotect's OEP using encryption Shell Attachment download: Shelling file and PDF 1. encryption process: Acproctect v1.41 Analyze the theft of OEP entry point code   2. analysis process: After loading, EIP = 00412000 00412000> 60

Shell sorting of data structures

# Size 10 // Insert the sorting directly Void insert_sort (){ Int I, J; Int array [size + 1]; Array [] = {, 22 }; For (I = 2; I Array [0] = array [I]; J = I-1; While (array [0] Array [J + 1] = array [J]; J --; } Array [J + 1] = array [0]; } } //

A good way to learn and understand shell-write your own shell

This article is based on the "Unix/Linux Programming Practice tutorial". This is a book that explains programming for Unix systems. It focuses on practice and is difficult to understand. We recommend that you read this article, there will be a

Kvm_install and Shell

#! /Bin/bash /Etc/init. d/NetworkManager stop Chkconfig NetworkManager off Service iptables stop Chkconfig iptables off Setenforce 0 Lang = en. UF-8 Yum-y groupinstall "virtualization" "virtualization client" "virtualization platform"

Shell script (5)-Fast SSH login to other hosts with ultra-convenient scripts

If you use Linux as your work environment, this article is a good news! Because I often use SSH to log on to other hosts during my study/work (especially recently Playing Raspberry Pi), and every time I use SSH to log on, I need to enter a long

How to debug Linux shell scripts

Shell also has a real debugging mode. If an error occurs in the script "strangescript", you can debug it as follows: Sh-x strangescript This will execute the script and display the values of all variables. Shell also has a mode that only checks

Implement ftp automatic backup shell script in linux

Use the here document Copy codeThe Code is as follows :#! /Bin/sh Ftp-ivn 210.29.28.124 User yun yun2011 LCD/home/veyun Cd/home/veyun/yhb Get v Bye EOF Explanation: -I: Disable interaction prompts during multi-file transmission, so there

Bash reference manual 5 (shell variable) continued 3

LINENO The row number of the script or shell function currently being executed. LINES The select command is used to determine the width of the selected columns. After receiving SIGWINCH, It is set automatically. MACHTYPE Is a string that

Linux-shell script command-awk

[Awk Introduction:] Awk can obtain part of the content from a text, or typeset the text so that it can be output in a certain format. [Awk workflow:] Awk will upload a row of file content to the memory and segment the content in this line

Total Pages: 541 1 .... 276 277 278 279 280 .... 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.