开发者

Mac OS10.6.8 - A way of deleting or removing files from a folder, using a list of file names?

I have a folder with 2508 files (jpg and pdf) in it on my drive. I have a list in a .txt file of about 1000 files which I want to remove from that folder - either by deleting to trash, or removing to another folder.

Is there a utility - or possibly commands I can put into the terminal - which I can use to do this, without manually moving files while looking through my list?

(Context: The list is a list of orphaned image files put out by Dreamweave开发者_开发知识库r - which I want to remove from the images folder of a given site)..

Any help appreciated. Thanks.


Put this in the terminal:

cat filename-of-list-with-files | xargs rm
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜