I have a random set of files that I want to loop over (e.g. so I can copy or move). I am using the command shuf
using a bash function.
inclnm
customarily contains a wildcard for specific files, e.g.
( -name A\* -o -name B\*.mse )
.
Here is the random listing command that I would like to loop through.
shuf -n $nf < <( find $dpath -maxdepth 1 -type f "${inclnm[@]}" )