DFIND(1)
π dfind(1) β the mpiFileUtils glow-up β¨
okay bestie so you're reading the dfind man page from mpiFileUtils, section 1 of the manual, and honestly? it's giving "find(1) but make it parallel and distributed" and I'm obsessed. buckle up π
β¨ NAME β¨
dfind β distributed file filtering. that's it, that's the vibe. π
π¦ SYNOPSIS π¦
dfind [OPTION] [EXPRESSION] PATH ...
πΈ DESCRIPTION πΈ
so dfind is a parallel MPI application that filters a list of files according to an expression. like, you give it a whole list of files and an expression, and it's like "ok these ones pass the vibe check, these ones don't." π«Ά
it provides functionality similar to find(1) β iykyk, it's the classic, but reimagined.
the file list can be obtained by either walking one or more paths provided on the command line or through an input list. your choice, main character. β¨
and the filtered list can be written to an output file. slay. π
π OPTIONS π
-i,--inputFILE β read the source list from FILE. important though: FILE must be generated by another tool from the mpiFileUtils suite. no random files, it's a whole ecosystem bestie. π§-o,--outputFILE β write the processed list to a file. πΎ-t,--textβ must be used with the--outputoption. writes the processed list of files to FILE in ascii text format. okay but like, pair it with--outputor it's not gonna work fr.-v,--verboseβ run in verbose mode. it will yap. love that for you. π£οΈ-q,--quietβ run tool silently. no output is printed. the strong silent type. π€«-h,--helpβ print a brief message listing thedfind(1)options and usage. your little helper. π
π₯ EXPRESSIONS π₯
okay so numeric arguments can be specified as:
+Nβ more than N-Nβ less than NNβ exactly N
literally that's the whole system, kind of iconic tbh.
--aminN β file was last accessed N minutes ago. π--anewerFILE β file was last accessed more recently than FILE was modified.--atimeN β file was last accessed N days ago. β³--cminN β file's status was last changed N minutes ago.--cnewerFILE β file's status was last changed more recently than FILE was modified.--ctimeN β file's status was last changed N days ago.--mminN β file's data was last modified N minutes ago. β--newerFILE β file was modified more recently than FILE.--mtimeN β file's data was last modified N days ago.--gidN β file's numeric group ID is N. πͺͺ--groupNAME β file belongs to group NAME.--uidN β file's numeric user ID is N.--userNAME β file is owned by user NAME. π--namePATTERN β base of file name matches shell pattern PATTERN. π--pathPATTERN β full path to file matches shell pattern PATTERN.--regexREGEX β full path to file matches POSIX regular expression REGEX. regular expressions processed byregexec(3). nerd mode activated, no cap. π€--sizeN β file size is N bytes. units can be used like'KB','MB','GB'. π--typeC β file is of type C, and the types are:bβ block devicecβ char devicedβ directoryfβ regular filelβ symbolic linkpβ pipesβ socket
π ACTIONS π
--printβ print file name to stdout. simple. effective. iconic. π¨οΈ--execCMD;β execute command CMD on file. here's the tea: all following arguments are taken as arguments to the command until';'is encountered, and the string'{}'is replaced by the current file name. don't forget the semicolon bestie, it's load-bearing. π
π EXAMPLES π
1. print all files owner by user1 under given path:
mpirun -np 128 dfind -v --user user1 --print /path/to/target
2. to find all files less than 1GB and write them to a file:
mpirun -np 128 dfind -v -o outfile --size -1GB /path/to/target
3. filter list in infile to find all regular files not changed in the past 180 days and write new list to outfile:
mpirun -np 128 dfind -v -i infile -o outfile --type f --mtime +180
π SEE ALSO π
the mpiFileUtils source code and all documentation may be downloaded from <https://github.com/hpc/mpifileutils> β go follow, it's giving open source royalty π
π¦ AUTHOR π¦
HPC
π COPYRIGHT π
2022, LLNL/LANL/UT-Battelle/DDN
okay that's the whole page, you're officially a dfind girlie now π
β¨
version 0.12, dated Jan 29, 2025 β mwah, xoxo π«Άππ
π¦ where this page comes from
- nixpkgs unstable: mpifileutils 0.12
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms