Proficient in awk series (18): if, while, switch, for statements of awk process control

Go back to: Linux series Shell series Awk series Process control statement Note: statement blocks in awk have no scope and are global variables. if (condition) statement [ else statement ] expr1?expr2:expr3 while (condition) statement do statement while (condition) for (expr1; expr2; expr3) statement for (var in array) statement break co ...

Posted by scuba on Fri, 28 Feb 2020 20:53:46 -0800

Permission management commands in linux (chmod/chown/chgrp/unmask)

Catalog chmod chown chgrp umask chmod explain Command name: chmod change the permissions mode of a file Command path / bin/chmod Execute permission: all users Function Description: change file or directory permissions grammar chmod [{ugoa}{+-=}{rwx}] [File or directory] chmod [mode=421] [File or directory] -R Recursive modification ...

Posted by sir nitr0z on Fri, 28 Feb 2020 00:48:39 -0800

Java cold knowledge Magic Number

1, Magic number in programming In the first article of constant definition in Section II of the programming specification of Alibaba Java Development Manual: Magic value (magic number) refers to an undefined constant, while the "ID × Taobao × U" in the opposite example is called ...

Posted by jagat21 on Wed, 26 Feb 2020 05:21:11 -0800

ADB? Debug ADB (ADB sets the code sorting of its own log and sets the ADB's own log to be visible)

Preface Preceding text Overview of ADB (I)ADB(2) ﹣ adbd ﹣ main() function code sortingADB(3) ﹣ adbd ﹣ adbd ﹣ main() function code sortingCode sorting of the host side of ADB (IV)ADB(5) sorting out the code related to the adb server on the host side First of all, we know that ADB indirectly call ...

Posted by Nimbuz on Tue, 25 Feb 2020 18:26:40 -0800

Learning big data -- variables and operators in Shell

Variables in Shell System variables Common system variables $HOME, $PWD, $SHELL, $USER, etc 2. Case practice (1) View the value of the system variable [root@hadoop100 learnshell]# echo $HOME /root (2) Display all variables in the current Shell: set [root@hadoop100 learnshell]# set BASH=/bin/bash ...

Posted by chacha102 on Tue, 25 Feb 2020 00:15:27 -0800

[Android-3.3 topic] talk about your understanding of Application

Inspection content: Understand the role of Application (primary) Familiar with class inheritance and life cycle of Application (intermediate) In depth understanding of Application initialization principle (Advanced) What is the role of Application? (first of all, it is a system component with a long ...

Posted by trollll on Sat, 22 Feb 2020 23:44:46 -0800

Help commands in linux

Catalog man whatis apropos --help info help man explain Command name:man Command English original meaning:manual Command path: /usr/bin/man Execution rights: all users Function description: Get help information grammar man [command or configuration file] Example #View help for ls command man ls Page Down with Space Page Up U ...

Posted by Eiolon on Tue, 18 Feb 2020 18:47:48 -0800

How to get password from shell script without echo

I have a script that automates processes that need access to password protected systems. Access the system through a command-line program that accepts the user password as a parameter. I want to prompt the user to type their password, assign it to a shell variable, and then use that variable to build the command line of the accessor (which, ...

Posted by trampolinejoe on Mon, 17 Feb 2020 03:23:02 -0800

Enhanced functions of various editors

Browser plug in Google translation (Chinese and English) Markdown Preview Plus Github Tree Click view raw to download and install Word translation qiniu upload files Seven cattle online map Vim reference vim ~/.vimrc syntax on set number set tabstop=4 set expandtab set hlsearch VSCode Set up ...

Posted by CrazeD on Sat, 15 Feb 2020 11:16:09 -0800

Shell programming condition test if, for, case, select, while

shell programming condition test Shell Conditional Judgment InitialShell branch if statementShell Loop for StatementShell branch case statementSelect List Select LoopShell loop controls continue,break,exitShell loop while statement Shell Conditional Judgment Initial [] Represents a conditional test, ...

Posted by guxin1999 on Wed, 12 Feb 2020 18:42:12 -0800