关注

the usage of shell command `awk`:

(1) awk '{print}' employee.txt:
print everything in file `employee.txt`

(2) awk '/manager/ {print}' employee.txt:
print every line in file `employee.txt` that contains the word `manager`

(3) awk '{print $1,$4}' employee.txt:
print the 1st and 4th column of the file.

additional usage:
geeksforgeeks.org/awk-command-

登录以加入对话
雾海

雾海是一个开放且不限制讨论主题的非营利性中文社区,名字来源于德国浪漫主义画家 Friedrich 的画作《雾海上的旅人》。生活总是在雾海中吞吐不定,不管怎么艰辛,他还是站在了这里!希望大家在这里玩的开心~