Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
d4a93dc3
Commit
d4a93dc3
authored
Oct 10, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tools_estrlist from estrlist package
parent
05ba1d9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
tools_estrlist
bin/tools_estrlist
+14
-4
No files found.
bin/tools_estrlist
View file @
d4a93dc3
...
...
@@ -121,15 +121,25 @@ reg_wordremove()
strip_spaces
"
$RES
"
}
reg_rqremove
()
{
local
i
local
RES
=
""
for
i
in
$2
;
do
[
"
$i
"
=
"
$1
"
]
||
RES
=
"
$RES
$i
"
done
strip_spaces
"
$RES
"
}
# Args: LIST1 LIST2
# do_exclude_list print LIST2 list exclude fields contains also in LIST1
# Example: exclude "1 3" "1 2 3 4" -> "2 4"
exclude
()
{
local
i
local
RES
=
""
for
i
in
$
2
;
do
echo
"
$1
"
|
grep
-q
-w
"
$i
"
||
RES
=
"
$RES
$i
"
local
RES
=
"
$2
"
for
i
in
$
1
;
do
RES
=
"
$(
reg_rqremove
"
$i
"
"
$RES
"
)
"
done
strip_spaces
"
$RES
"
}
...
...
@@ -140,7 +150,7 @@ reg_exclude()
local
i
local
RES
=
"
$2
"
for
i
in
$1
;
do
RES
=
$(
reg_remove
"
$i
"
"
$RES
"
)
RES
=
"
$(
reg_remove
"
$i
"
"
$RES
"
)
"
done
strip_spaces
"
$RES
"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment