I have many directory with different name, each of them contain a subdirectory named httpd-ack (same name for all of them) in which are stored files.
I need a command to recursively enter each directory, enter subdir httpd-ack, move all files one level up and then delete the httpd-ack folder (which is empty now).
start is
name1/httpd-ack/(files)
name2/httpd-ack/(files)
name3/...[...]
ending should be
name1/(files)
name2/(files)
name3....[...]
Any help will be much appreciated....
http-ack
directories may be nested very deeply (e.g.name4/foo/bar/baz/http-ack
)? (2) If so, shouldhttp-ack
directories residing inside otherhttp-ack
directories be processed? Based on your examples, I think that this does not need to operate recursively and that you already have a list of all the directories (shown in the question asname1
,name2
, etc.). But I'm not totally sure and Jos has interpreted the question as requiring recursion so I figured I'd check. – Eliah Kagan May 30 '20 at 15:46