repo.or.cz
/
cmdllinux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
update repository
[cmdllinux.git]
/
bash_n_examples
/
bash
/
functions
/
filter_by_list.sh
blob
77b0726ea492f2d5a78c3b369ec3c6999dbdf7ba
1
2
while
read
listdir1
;
do
3
A
=
true
4
for
j
in
$params
;
do
5
j
=
${j//\*/[^@]*}
6
if
!
echo
"
$listdir1
"
|
grep
-q
"@
$j
@"
;
then
7
A
=
false
8
break
9
fi
10
done
11
[
"
$A
"
=
"true"
] &&
echo
"
$listdir1
"
12
done