Android adb Shell learning Experience (iv)

Source: Internet
Author: User

Sub in 1.awk

The sub is the replacement function. Forms such as

Sub (/1/, "", $)

Replace the first 1 of the second variable with an empty one, if the sub is replaced with Gsub. The entire 1 is replaced.

-F in 2.awk

Delimiter, default feel space

Fs,ofs in 3.awk

FS is the column delimiter and OFS is the output column delimiter. The blank space of the tacit feeling

4.$#: Number of parameters for this program

5.$0: The running name of this program

6. $n: The nth number of the program. n=1..9

7.$*: The total number of parameters for this program, this option can be more than 9

8.$$: PID of this program (the current process ID number of the script execution)

9.$!: Performs the PID of the previous background instruction (process ID number of the last process executed in the background)

10.$: Run the return value of the previous instruction (shows the exit status of the last command.) 0 indicates no error. Any other value indicating an error)

Android adb Shell learning Experience (iv)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.