l*h
2 楼
假设我的目录下有900个文件。文件名依次为001.txt, 002.txt, ..., 900.txt。我想
保留009.txt, 045.txt, 和638.txt这三个文件。
请问有什么命令能快速删除其余的文件?
谢谢。
保留009.txt, 045.txt, 和638.txt这三个文件。
请问有什么命令能快速删除其余的文件?
谢谢。
Q*a
3 楼
您好!
以上条件我都符合。请问您在哪个州?方便的话,可以加我的微信:百无一用。谢谢!
以上条件我都符合。请问您在哪个州?方便的话,可以加我的微信:百无一用。谢谢!
l*G
5 楼
ls *.txt| egrep -e '(009.txt|045.txt|638.txt)' -v |xargs rm -f
要小心喔, 文件删除就难回来了。
要小心喔, 文件删除就难回来了。
相关阅读
很多geek思维根本是反技术发展的shell Q: how to detect if a file existsIng Direct checking account免费送50刀,赶紧申请从debian/ubuntu/mint转到centos,好郁闷linux怎么读入一个超过有超过1B integer的binary file? (转载)Urgent help please! background process killed.Amex SPG卡送25K points 免费500刀现金庆祝Arch Linux逆天!菜鸟请教什么类型的项目需要linux下面的编程problem with "\"Ing Direct checking account免费送50刀, 赶紧申请Re: 有没有Linux版本的Serv-U? (转载)Ing Direct checking account免费送50刀,赶紧申请问一个vim的问题 (转载)Ubuntu 12.04巨大的log filevirtualbox sata虚拟硬盘的io performance10台Sparc怎么用open suse 12.1linux下哪个mpeg player可以shall i call system("ifconfig eth0 ... up") or write my own (转载)