Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #243949
| From | Charles Curley <charlescurley@charlescurley.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: restructure folders |
| Date | 2022-01-13 07:10 +0100 |
| Message-ID | <DF1t8-3CK-1@gated-at.bofh.it> (permalink) |
| References | <DF0dH-2tc-3@gated-at.bofh.it> |
| Organization | occasionally |
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/
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
restructure folders "sp007@caiway.net" <sp007@caiway.net> - 2022-01-13 05:50 +0100 Re: restructure folders Keith Bainbridge <keithrbaugroups@gmail.com> - 2022-01-13 06:00 +0100 Re: restructure folders Charles Curley <charlescurley@charlescurley.com> - 2022-01-13 07:10 +0100
csiph-web