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

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