Regular expression explanation of Shell script

catalogue 1, Common pipeline commands 1.1 sort command 1.2 uniq command 1.3 tr command 1.4cut command 1.5 examples 1.5.1 statistics of current host connection status 1.5.2 count the number of currently connected hosts 2, Regular expression 2.1 definition of regular expression 2.2 common metacharacters (supported tools: find, grep, eg ...

Posted by delmardata on Tue, 26 Oct 2021 07:04:13 -0700

Detailed explanation and practice of Linux shell script -- a branch of shell script

Today, I will continue to introduce you to the basic knowledge of Linux. The main content of this article is the branch of Linux shell script. 1, shell branch -- if statement form In shell script, we usually use if statement to make the script execute different commands according to some conditions, which can greatly make the function of the ...

Posted by warik on Wed, 13 Oct 2021 07:11:18 -0700

rpm packaging quick start tutorial

RPM (Redhat Package Manager) is a common package manager for Linux distribution s such as Redhat, CentOS and Fedora. RPM tool can be used to make source installation package and binary installation package. This document provides an example to illustrate how to make an RPM binary package. 1. Preparation Install the programs required for packa ...

Posted by jara06 on Tue, 12 Oct 2021 16:22:39 -0700

How to build Shell-CLI conforming to POSIX utility conventions--Argtable3 source parsing

2021SC@SDUSC How to build Shell-CLI conforming to POSIX utility conventions What is Argtable Argtable is an open source ANSI C library that parses GNU-style command line options. It simplifies command line analysis by defining declarative API s that can be used to specify command line syntax. argtable automatically generates consistent t ...

Posted by shanksta13 on Sat, 09 Oct 2021 09:40:36 -0700

linux command - process (service) management

1. ps process to view the instantaneous process status (use the top command to view the real-time process) ps supports three formats of commands 1) Unix style, options start with -. 2) BSD style, options cannot start with -. 3) GNU long option, which starts with -. Commands of the three formats can be mixed, but there may be conflicts. Use eac ...

Posted by wxflint on Sun, 26 Sep 2021 18:21:56 -0700

Shell command execution visualization and warning tools

From: FreeBuf.COM Author: secist Links:https://www.freebuf.com/sectool/212820.html Sampler is a tool for shell command execution, visualization, and alerts. It is configured using a simple YAML file. 1. Why do I need it? You can sample any dynamic process directly from the terminal - watch for changes in the database, monito ...

Posted by califdon on Tue, 21 Sep 2021 00:23:17 -0700

Here Document and expect of Shell programming are interactive free

introduction Today, let's introduce the interactive free tools in the shell, which are used to realize automatic interactive tasks without human intervention. It can bring you convenience and make it easier for you to complete your work. 1, Here Document interaction free 1. General Use I/O redirection to provide a list of commands t ...

Posted by bluebutterflyofyourmind on Wed, 15 Sep 2021 16:44:14 -0700

Interaction free shell programming

preface Today, I'd like to introduce two interactive software Here Document and Expect. The former system comes with its own tools, and the latter needs to be installed. After mastering these two tools, it will help our production work. Let's go into them and have a look. 1, Here Document interaction free 1. Overview: Use I/O redirectio ...

Posted by scottjcampbell on Wed, 15 Sep 2021 11:09:49 -0700

Shell file processing three swordsmen sed

preface sed (Stream EDitor) is a powerful and simple text parsing and conversion tool. It can read the text, edit the text content (delete, replace, add, move, etc.) according to the specified conditions, and finally output all lines or only some lines processed. sed can also realize quite complex text processing operations without inter ...

Posted by SOL-ion on Tue, 14 Sep 2021 18:53:39 -0700

Task Schedule crontab

crontab command -u: Specify a user, the current user without the -u option -e: Develop planned tasks -l: List scheduled tasks -r: Delete scheduled tasks View the configuration file for crontab: [root@localhost ~]# cat /etc/crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root # For details ...

Posted by frikikip on Thu, 16 Jul 2020 07:27:41 -0700