Siêu Thị Vay App h5 Vay tiền
This Bash command performs the following operations:
1. `cat config.yaml`: This part of the command uses the `cat` command to output the contents of the file `config.yaml` to the standard output. `cat` is used to concatenate and display the content of files.
2. `|`: This symbol is a pipe. It is used to redirect the output of one command as input to another command.
3. `awk NF`: This part of the command uses the `awk` command, a powerful text processing tool, with the condition `NF`. `NF` in `awk` represents the number of fields in a record. When `NF` is used alone as a condition, it evaluates to true if the current record has one or more fields. Essentially, it filters out blank lines from the input.
So, the entire command `cat config.yaml | awk NF` reads the contents of the file `config.yaml`, passes it to `awk`, and `awk` then filters out and displays only the lines that are not empty (i.e., lines with at least one field).
4.9/5 (83 votes)
Có thể bạn quan tâm: