Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
Practical-Cryptdb
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhaozhen
Practical-Cryptdb
Commits
481b74e7
Commit
481b74e7
authored
Jan 16, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
calculate_column.sh
parent
251a19a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
calculate_column.sh
packages/tls/mysql_wrapper/calculate_column.sh
+17
-0
No files found.
packages/tls/mysql_wrapper/calculate_column.sh
0 → 100755
View file @
481b74e7
dir
=
"allTables"
function
calculate_column
()
{
token
=
$1
echo
$1
:
res
=
`
find
${
dir
}
-type
f |
grep
"
${
token
}
"
| xargs
du
|
awk
'NR==1{res=0;}{res+=$1}END{print res}'
`
resM
=
`
expr
$res
/ 1024
`
echo
$res
KB OR
$resM
MB
}
calculate_column ADD
calculate_column Eq
calculate_column Order
calculate_column SWP
calculate_column cdb_salt
calculate_column
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