摘要: #!/bin/bash cmd="ls -lt | grep ^d | awk 'NR==1 {print $9}'" $cmd 这是一个获取文件夹名字的脚本,但是却提示: ls: cannot access |: no such file or directory ls: cannot acces 阅读全文
posted @ 2015-10-19 16:30 Magnum Programm Life 阅读(296) 评论(0) 推荐(0) 编辑