Fast bulk file removal from the command line

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

Fast bulk file removal from the command line

#1 Post by jpeps »

Fast way of removing a long list of files
(also good for backups, etc)

Code: Select all

#!/bin/bash

## reads files on list

while read line
do
   rm  $line
done < $1

Post Reply