The below will move all the files in the directory dir
to the destination using parallel
and create a log, however will not keep them in the directory. I have tried mkdir -p
but that does not seem to work or at least I can not seem to get it (as it deletes others files when I use it). What is the correct way to move the 3 files into the same directory? Thank you :).
dir="/home/cmccabe/Downloads/snp"
cd "$dir"
parallel -j10 --progress mv -v {} /home/cmccabe/Desktop/indel/ ::: * > /home/cmccabe/medex.logs/archive.log
Folder structure:
FolderName --- dir
|
file1
file2
file3
Desired after move:
FolderName
|
3 files in it