Excluding certain files from moving but move hidden ones too
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
In my deployment script I have such as code to exclude certain files.
shopt -s extglob
mv !(deploy.sh|file1|file2) ~/$public
It works almost well but ignores hidden files so they are not moved. How to improve the code to move hidden files too?
bash shell-script regular-expression dot-files shopt
add a comment |Â
up vote
0
down vote
favorite
In my deployment script I have such as code to exclude certain files.
shopt -s extglob
mv !(deploy.sh|file1|file2) ~/$public
It works almost well but ignores hidden files so they are not moved. How to improve the code to move hidden files too?
bash shell-script regular-expression dot-files shopt
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In my deployment script I have such as code to exclude certain files.
shopt -s extglob
mv !(deploy.sh|file1|file2) ~/$public
It works almost well but ignores hidden files so they are not moved. How to improve the code to move hidden files too?
bash shell-script regular-expression dot-files shopt
In my deployment script I have such as code to exclude certain files.
shopt -s extglob
mv !(deploy.sh|file1|file2) ~/$public
It works almost well but ignores hidden files so they are not moved. How to improve the code to move hidden files too?
bash shell-script regular-expression dot-files shopt
bash shell-script regular-expression dot-files shopt
asked 2 mins ago
trzczy
151113
151113
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480504%2fexcluding-certain-files-from-moving-but-move-hidden-ones-too%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password