开发者社区 问答 正文

awk脚本 一个简单的报错问题 ?报错

awk脚本
$linux@ubuntu:~/jwx$ awk -F:'{print $0}' passwd.txt >>bak.txt
$awk: passwd.txt
$awk: ^ syntax error
刚学脚本 不知道为什么会报错?

展开
收起
爱吃鱼的程序员 2020-06-24 14:24:15 425 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    awk-F':''{print$1}'/etc/passwd>>bak.txt

    2020-06-24 14:24:30
    赞同 展开评论
问答分类:
问答地址: