Main Forum Index

Forum Home

Post Reply

Email Forum Admins

Log In

Search Forums

Read Messages

Send a Message

Edit Your Settings

Forum Rules


Could try "find" in terminal.....
By:  enet (Moderators; 6390)
Posted on: 11-23-2019 19:03.
Client: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0
IP: Logged 
Message views: 38 (Score: 0)  

* find
* all files (-type f)
* that are directly on the desktop not subdirectories (~/Desktop, -maxdepth 1)
* and move them to a folder on the desktop called "files" (-exec mv -v {} ~/Desktop/files)

Practice run (echo the mv commands, rather than run them):

mkdir ~/Desktop/files
find ~/Desktop -type f -maxdepth 1 -exec echo mv -v {} ~/Desktop/files \;

For real:

mkdir ~/Desktop/files
find ~/Desktop -type f -maxdepth 1 -exec mv -v {} ~/Desktop/files \;

Edited by enet at 11/23/2019 7:23:30 PM