User Tools

Site Tools


bash

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
bash [2023/10/01 17:28] – getopts rjtbash [2024/01/10 10:59] (current) – Move all files in subdirectories to parent rjt
Line 48: Line 48:
  mv -- "$file" "$(mktemp --dry-run XXXXXXXX.jpeg)"  mv -- "$file" "$(mktemp --dry-run XXXXXXXX.jpeg)"
 done done
 +</code>
 +
 +==== Move all files in subdirectories to parent ====
 +
 +  * https://unix.stackexchange.com/questions/358284/move-all-files-inside-sub-folders-to-parent-folder
 +
 +<code bash>
 +find . -mindepth 2 -type f -print -exec mv {} . \;
 </code> </code>
  
bash.1696141718.txt.gz · Last modified: 2023/10/01 17:28 by rjt