Vay tiền tiêu Tết cá nhân không cần giấy tờ 24/24
This Bash command reads the contents of the file `config.yaml` using the `cat` command, then pipes (`|`) it to `awk NF`. Here's what each part does:
1. `cat config.yaml`: This command displays the contents of the file `config.yaml` to the standard output.
2. `|`: This is the pipe operator, which takes the output from the command on its left (`cat config.yaml` in this case) and passes it as input to the command on its right (`awk NF`).
3. `awk NF`: This command uses `awk`, a powerful text processing tool, with the `NF` condition. `NF` in `awk` stands for the number of fields in a record. When `NF` is used as a condition without specifying any pattern, `awk` evaluates it as true for lines that are not empty. Therefore, `awk NF` effectively filters out blank lines from the input stream and prints only those lines that are not empty.
In summary, the command `cat config.yaml | awk NF` reads the contents of the `config.yaml` file and prints only the lines that are not empty.
4.9/5 (84 votes)