Awk of shell three swordsmen (including sort sorting and uniq tools)

awk of shell three swordsmen In Linux/UNIX system, awk is a powerful editing tool. It reads input text line by line, searches according to the specified matching mode, formats and outputs qualified content or filters it. It can realize quite complex text operation without interaction. It is widely used in Shell scripts to complete various aut ...

Posted by nick5449 on Sun, 13 Oct 2019 19:14:11 -0700

Regular Expressions for Shell Programming

awk tools In Linux/UNIX system, awk is a powerful editing tool. It reads input text line by line, searches according to the specified matching mode, formats and outputs qualified content or filters it. It can realize quite complex text operation without interaction. It is widely used in Shell scripts to complete various automatic configuration ...

Posted by lostnucleus on Sat, 12 Oct 2019 16:13:07 -0700

DOM&BOM Operation

The difference between property and attribute <div id="div1" class="class-div1"> <P id="p1" data-name="p1-data-name">this is p1</P> <P id="p2">this is p2</P> </div> //property var div1 = document.getElementById('div1') console.log(div1.className) div1.className = ...

Posted by sunilvadranapu on Thu, 10 Oct 2019 08:39:13 -0700

Shell Programming-Expect Free of Interaction

Expect overview Expect is a tool based on tcl. Expect is a tool for automatic control and testing. It mainly solves the problem of non-interaction in shell script. It's helpful for large-scale Linux operations and maintenanceIn the development of Linux operations and peacekeeping, we often need remote login server to operate. The login proces ...

Posted by Redneckheaven on Thu, 10 Oct 2019 06:18:15 -0700

Shell script three swordsmen - Grep (advanced version of egrep), Sed, Awk commands

Grep command 1. Examples of Basic Regular Expressions - Finding Specific Characters Here we will take the / etc/passwd file of all the local users as an example. Demo1 [root@localhost ~]# Grep-n "root"/etc/passwd//-n denotes the display line number 1:root:x:0:0:root:/root:/bin/bash 10:operator:x:11:0:operator:/root:/sbin/nologin 2. E ...

Posted by Buddski on Wed, 09 Oct 2019 04:30:29 -0700

Linux DNS Separation and Resolution

Setting up DNS separate parsing can provide different domain name parsing records for different clients. When a client from different addresses requests the same domain name, it provides different parsing results. Install the bind package [root@localhost ~]# yum install bind bind-utils -y Dual Network Card Configuration Both network cards ar ...

Posted by bradleybebad on Tue, 08 Oct 2019 15:48:07 -0700

Linux Deployment YUM Warehouse

This article mainly describes how to build a custom YUM source, in a host environment with a large number of local networks, can reduce dependence on the external network. Server Install vsftp package [root@server ~]# yum install vsftpd -y Adding related resource bundles Create directories to store [root@server ~]# mkdir /var/ftp/centos7 /v ...

Posted by skot on Tue, 08 Oct 2019 12:36:43 -0700

Implementation of FTP File Transfer in Terminal Based on Python

Implementing FTP File Transfer in Terminal Code structure: .├── client.py├── readme.txt└── server.py Operating screenshots:   readme.txt tftp file server Project function: * The client has a simple page command prompt * Functions include: 1. View the File List (Ordinary File) in the Server File Library - > os. ...

Posted by wisedj on Mon, 07 Oct 2019 19:49:19 -0700

Enterprise Essentials-Linux Centos7 Remote YUM Warehouse Deployment

Purpose of this chapter: Client Centos7-1 can enjoy the YUM repository of remote server Centos7 This chapter environment: a server Centos7, a client Centos7-1, VM Virtual Machine 1. Install vsftpd service [root@localhost ~]# yum install vsftpd -y Loaded plug-ins: fastest mirror, langpacks Loading mirror speeds from cached hostfile * base: m ...

Posted by joshmmo on Mon, 07 Oct 2019 18:25:42 -0700

Automatic Installation of Linux PXE + Kickstart

When installed on a large scale, it is easy to operate manually and improve efficiency by using unattended equipment. PXE Network Installation Configuration of Dual Network Cards Here, ens33 is a nat network, ens37 is a host-only network, and ens37 is configured. [root@localhost ~]# cd /etc/sysconfig/network-scripts/ [root@localhost networ ...

Posted by greedyisg00d on Mon, 07 Oct 2019 15:33:16 -0700