Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mateusz Pawlik
ted-datasets
Commits
054e9128
Commit
054e9128
authored
Oct 23, 2018
by
Mateusz Pawlik
Browse files
Added the flag to use 4GB memory for sorting.
parent
b54bf946
Changes
1
Show whitespace changes
Inline
Side-by-side
utilities/sort_dataset.sh
View file @
054e9128
...
...
@@ -31,6 +31,5 @@
#
# NOTE: We substract the escaped brackets because they're part of node labels.
#
cat
$input
|
awk
'{print gsub("{","{")-gsub("\\\\{","\\{"), $0}'
|
sort
-n
|
\
cut
-d
' '
-f2-
# > "${1%.bracket}_sorted.bracket"
cat
$input
|
awk
'{print gsub("{","{")-gsub("\\\\{","\\{"), $0}'
|
\
sort
-n
--buffer-size
=
4G |
cut
-d
' '
-f2-
Write
Preview
Supports
Markdown
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