• 0 Posts
  • 18 Comments
Joined 1 year ago
cake
Cake day: June 18th, 2023

help-circle




  • find /path/to/parent/directory -type f \( -name "*.mp4" -o -name "*.hvec" \) -exec mv -t /path/to/parent/directory {} +
    

    Explanation:

    •	find /path/to/parent/directory: Start the search from the specified parent directory.
    •	-type f: Restrict the search to files (not directories).
    •	\( -name "*.mp4" -o -name "*.hvec" \): Look for files with either a .mp4 or .hvec extension.
    •	-exec mv -t /path/to/parent/directory {} +: Execute the mv command to move the found files to the specified parent directory.