I have a folder A
which has files and directories, I want to move all those files and directories to another folder B
, except file
, file2
, directory
, and directory2
.
How can this be done?
command linedirectoryfilesmove
I have a folder A
which has files and directories, I want to move all those files and directories to another folder B
, except file
, file2
, directory
, and directory2
.
How can this be done?
Best Answer
With
zsh
:(the
(D)
to include dot (hidden) files).With
bash
:With
ksh93