Shell programming interaction free expect

This article mainly writes some shell scripts to avoid the use of interactive expect. Summary Expect is a tool based on tcl. Expect is a tool for automatic control and testing. It mainly solves the non interactive problem in shell script. install Install before using this tool yum install -y expect Basic command send Send string to process ...

Posted on Wed, 16 Oct 2019 19:43:19 -0700 by Haggen

1067 error in mysql - 2

Original link: http://www.cnblogs.com/riasky/p/3455452.html Previous post< 1067 error in mysql >1067 error due to log configuration problem in. To upgrade MySQL to V5.6, copy my.ini and data files to the new system. 1067 error occ ...

Posted on Wed, 16 Oct 2019 16:31:22 -0700 by ma5ect

Shell Programming Text Processing Tool sed

This article mainly writes about the use of shell script text processing tool sed. Summary Stream EDitor (Stream EDitor) is a powerful and simple text parsing and transformation tool, which can read text, edit the text content (delete, replace, add, move, etc.) according to specified conditions, and finally output all lines or only some proce ...

Posted on Mon, 14 Oct 2019 18:49:33 -0700 by klaaz

c language implements rm command to delete specified files or directories

Linux system api int rmdir(const char *pathname); directories can be deleted. But when using rmdir function, the directory must be empty, otherwise the call fails, the function returns - 1, and the function returns 0 when the execution is successful. You can also delete non-empty directories by using th ...

Posted on Sun, 13 Oct 2019 11:34:12 -0700 by thinguy

linux Driver for Zyqn pl Interruption in Mill Technology

Zyqn pl interrupt I. objectives On the development platform of Miller Technology zynq, pl interruption is realized by zynq's key switch. Two. Analysis. Schematic diagram Hang on the pl side, need to be on vivado pin locking. The configuration is as follows Of course, the interruption function can be use ...

Posted on Fri, 11 Oct 2019 08:36:36 -0700 by cmanhatton

shell script regular expression one of the three swordsmen (grep,egrep)

Regular expressions for Shell scripts One of the three regular expression swordsmen: grep 1. Before learning regular expressions, let's take a useless configuration file as a test exercise. [root@localhost ~]# vim chen.txt #version=DEVEL System authorization information auth --enableshadow --passalgo=sha512# Use CDROM installation media c ...

Posted on Fri, 11 Oct 2019 04:33:25 -0700 by DataRater

js sorting method

Summary and comparison of js ten classical algorithmsExcerpts from the original https://www.cnblogs.com/AlbertP/p/10847627.htmlA map summarizes: Overview of Mainstream Sorting AlgorithmsNoun Interpretation:n: Data sizek: number of barrelsIn-place: Constant memory, no extra memoryOut-place: Take up extra memoryStability: The order of the two equ ...

Posted on Fri, 11 Oct 2019 01:18:05 -0700 by Supplement

Shell scripts -- regular expressions

The Concept of Regular Expressions Regular expression: Use a single string to describe and match a series of strings that conform to a certain syntactic ruleIt is composed of ordinary characters and special characters. It is commonly used in script programming and text editor, such as php, python, she, etc. It is abbreviated as regex, regexp, ...

Posted on Thu, 10 Oct 2019 22:24:58 -0700 by keyboard

JGsoft RegexBuddy

awk 1. Common usage of awk Usually, the command format used by awk is as follows, where single quotation marks plus braces "{}" are used to set the processing actions for data. Awk can process the target file directly, or it can process the target file by reading the script "-f". By default, the field separator is a space o ...

Posted on Thu, 10 Oct 2019 10:17:51 -0700 by Chris 96 WS6

Shell Programming-Conditional Judgment

Conditional Judgment of Shell Programming Conditional test operation test command Test whether a particular expression is valid. When the condition is valid, the return value of the test statement is 0, otherwise it is another value. Format 1: test conditional expression Format 2: [Conditional expression] Document testing[Operator file or dir ...

Posted on Thu, 10 Oct 2019 02:57:36 -0700 by swissbeets