Use find to select some directory
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I wish to use find (or ls) in a script to select some directory (maybe several directories actually) according to some variable I give.
So for ex :
/usr/local/bin/script tad*
would give me a list of all the directories beginning with "tad" in repository /var/db.
Not
/var/db/tadam
/var/db/tadadada
/var/db/taddeus
but
tadam
tadadada
taddeus
Thanks for help.
shell-script
add a comment |Â
up vote
0
down vote
favorite
I wish to use find (or ls) in a script to select some directory (maybe several directories actually) according to some variable I give.
So for ex :
/usr/local/bin/script tad*
would give me a list of all the directories beginning with "tad" in repository /var/db.
Not
/var/db/tadam
/var/db/tadadada
/var/db/taddeus
but
tadam
tadadada
taddeus
Thanks for help.
shell-script
How does your scriptscript
look like? What is your final goal? Are you interested in only directories or files too?
â Valentin Bajrami
3 mins ago
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I wish to use find (or ls) in a script to select some directory (maybe several directories actually) according to some variable I give.
So for ex :
/usr/local/bin/script tad*
would give me a list of all the directories beginning with "tad" in repository /var/db.
Not
/var/db/tadam
/var/db/tadadada
/var/db/taddeus
but
tadam
tadadada
taddeus
Thanks for help.
shell-script
I wish to use find (or ls) in a script to select some directory (maybe several directories actually) according to some variable I give.
So for ex :
/usr/local/bin/script tad*
would give me a list of all the directories beginning with "tad" in repository /var/db.
Not
/var/db/tadam
/var/db/tadadada
/var/db/taddeus
but
tadam
tadadada
taddeus
Thanks for help.
shell-script
shell-script
asked 17 mins ago
22decembre
71117
71117
How does your scriptscript
look like? What is your final goal? Are you interested in only directories or files too?
â Valentin Bajrami
3 mins ago
add a comment |Â
How does your scriptscript
look like? What is your final goal? Are you interested in only directories or files too?
â Valentin Bajrami
3 mins ago
How does your script
script
look like? What is your final goal? Are you interested in only directories or files too?â Valentin Bajrami
3 mins ago
How does your script
script
look like? What is your final goal? Are you interested in only directories or files too?â Valentin Bajrami
3 mins ago
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%2f477366%2fuse-find-to-select-some-directory%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
How does your script
script
look like? What is your final goal? Are you interested in only directories or files too?â Valentin Bajrami
3 mins ago