在unix中排序,命令未找到错误

时间:2017-10-09 18:11:42

标签: sorting unix awk

我有一个功课,我无法弄清楚我错过了什么。我开始时只显示部门编号100.它显示部门编号100,但也显示每个行显示命令未找到。

这是我的代码:

awk  '/:100:/ { print }' employees

The records in this file have 5 fields separated by colons (:). The fields are ssn, department, lastname, firstname and years_employed. Use the employees file to create output where the employees are from DEPARTMENT 100 only, the number of years_employed has been increased by 1 year and the file is in sorted order.

0 个答案:

没有答案