Re: restructure folders
On Thu, 13 Jan 2022 05:31:25 +0100
"sp007@caiway.net" <sp007@caiway.net> wrote:
> Is this possible on the commandline?
Yes. The following untested code should do it:
cd /
mv dir1/dirA .
mv dir2/dir* .
rm -r dir1 dir2
In particular, you will lose any files in dir1 and dir2 not specified
in the relevant mv. Also, the wild card specification in line 3 will
grab files as well as directories.
I suggest you make backups first if you don't make them regularly
(which you should).
--
Does anybody read signatures any more?
https://charlescurley.com
https://charlescurley.com/blog/
Reply to: