摘要:
引用老男孩:http://blog.51cto.com/oldboy/699046 阅读全文
posted @ 2018-10-13 20:19
Howie_Tang
阅读(191)
评论(0)
推荐(0)
摘要:
面试题:删除一个目录下的所有文件,但保留一个指定文件 解答: 假设这个目录是/xx/,里面有file1,file2,file3..file10 十个文件 [root@oldboy xx]# touch file{1..10} [root@oldboy xx]# ls file1 file10 file2 file3 file4 file5 file6 file7 file8 ... 阅读全文
posted @ 2018-10-13 16:22
Howie_Tang
阅读(881)
评论(0)
推荐(0)