ifdh tips - twongjirad/LArLiteSoftCookBook GitHub Wiki
/pnfs
is not your normal drive. We're suppose to use ifdh
commands. To get a list of them type
ifdh --help
remove multiple files from a directory and then directory
find /pnfs/directory/* | xargs -n 1 ifdh rm
ifdh rmdir /pnfs/directory/
The first line: find
prints to standard out the name of the every file in the directory. That output gets piped to xargs
. Because of the -n 1
flag, it breaks up the output and passes each entry to the command ifdh rm
.
The second line removes the folder.