I want to make a script to "unhide" all files and directories inside a certain directory in one go, e.g. ./unhide test
.
test/
├── sub1
│ └── .hiddenfile1
└── sub2
└── .hiddendir
├── .hiddendirsub
├── .hiddenfile2
└── not.hidden
Desired outcome:
test/
├── sub1
│ └── hiddenfile1
└── sub2
└── hiddendir
├── hiddendirsub
├── hiddenfile2
└── not.hidden
How can I do that?
I'm still new to this and I've been trying to find a solution using find
, but stuck at -exec
, and rename
(or mv
) because I'm still struggling to understand how this combination works. :(
So, I'll appreciate if anyone here can give a solution and detailed explanation as well. Thanks.