shell learning notes common commands tar cpio gzip zip
From Chapter 7 of Linux Shell script introduction
Archiving with tar
The tar command can archive files. It was originally designed to store data on tape, so its name also comes from Tape ARchive. Tar can package multiple files and folders into a single file, while retaining all file attributes, such as owner, permissions, etc. Files created b ...
Posted by mooler on Mon, 29 Nov 2021 00:30:30 +0100
Linux three swordsmen awk
Linux three swordsmen awk
awk description
awk - pattern scanning and processing language; awk is gawk, which is more like a language and is very powerful in file processing; awk can customize variables, functions, loops, conditional statements, etc; awk judges and processes data line by line;
awk usage
awk command syntax
Precedin ...
Posted by brem13 on Sat, 20 Nov 2021 22:25:31 +0100
Using autohotkey to realize the function of "using English punctuation in Chinese" of one key switching input method
As a programmer, especially the old code farmer who can't do anything without vim, the "use English punctuation in Chinese" function of the input method is essential. It allows you to avoid many unnecessary Chinese and English switching operations when writing code. However, this function is a burden when writing documents. Chinese do ...
Posted by websitesca on Wed, 17 Nov 2021 17:43:22 +0100
Summary of shell script writing on October 30, 2021
Summarize the scripting from 10.14 to 10.28
In order to consolidate the relevant knowledge points of shell script, the problems and solutions encountered in writing script are summarized. Title I 10.14.sh The logic is not perfect, and there is no troubleshooting experiment. Many problems will arise when troubleshooting experiments are carried ...
Posted by idevlin on Sun, 31 Oct 2021 07:48:53 +0100
General operation of Git
home pagespecial columngitArticle details0General operation of GitLao Mao Published 21 minutes agoAs a developer, no matter where he goes, he may have an indescribable relationship with the code warehouse. From clone warehouse = > new function branch = > submit after the development function is completed = > branch merge = > label = ...
Posted by ozzythaman on Fri, 29 Oct 2021 11:03:04 +0200
awk common syntax
The awk command is used for output, statistics, and other processing of records that match styles in a file. awk command syntax: awk pattern { ACTION }
While awk reads the file, the variable $0 holds the entire line, the variable $1 holds the contents of the first field, $2 holds the contents of the second field,....
The variable NF holds ...
Posted by deemurphy on Thu, 21 Oct 2021 21:53:17 +0200
LVS-DR mode + Keepalived high availability cluster
introduction
In this highly information-based IT era, the production system, business operation, sales and support, daily management and other links of enterprises increasingly rely on computer information and services, resulting in a large increase in the demand for the application of high availability technology, so as to provide conti ...
Posted by netpants on Wed, 20 Oct 2021 22:07:46 +0200
Detailed explanation of for loop usage in shell
for command: Various uses of for i in:
for i in "file1" "file2" "file3"for i in /boot/*for i in /etc/*.conffor i in $(seq -w 10) -- equal width 01-10for i in {1...10}for i in $( ls )for I in $(< file)for i in "$@" -- take all location parameters, which can be abbreviated as for i Note: the bash shell supports C-type f ...
Posted by Ozzapoo on Fri, 17 Sep 2021 09:24:07 +0200
Shell Scripting Tricks - Here Document Free Interaction and Expect Automation Interaction
Preface
In a real production environment, writing shell scripts will inevitably encounter some interactive interfaces, such as raid s and extensions, which require interaction, so we need to use the following non-interactive operations to achieve true shell script automation.
1. Here Document exempt from interaction
1. Overview
Provide ...
Posted by PHPHorizons on Wed, 15 Sep 2021 18:38:33 +0200
Phased summary of shell programming + several shell script examples
I've been learning shell for some time. I've sorted out some basic shell syntax before. Today I'll make a phased summary. In addition, there are several script examples for your reference.
Summary brain map
Script instance
1. Judge whether the two hosts are ping ed
#!/bin/env bash
#This script is used to deter ...
Posted by fangfang on Sat, 11 Sep 2021 06:31:41 +0200