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
精彩评论