- 论坛徽章:
- 0
|
请教:杀掉指定用户的进程应如何写SHELL?
$ who -u|grep $stand|awk {printf"kill -9 %s\n",$7
usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] -e pattern_list...
[-f pattern_file...] [file...]
usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] [-e pattern_list...]
-f pattern_file... [file...]
usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwy] [-p[parasep]] pattern_list [file...]
syntax error The source line is 1.
The error context is
{printfkill -9 >;>;>; %s\ <<< n,
awk: The statement cannot be correctly parsed.
The source line is 1.
awk: There is a missing } character. |
|