Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gpfs-policy
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
gpfs-policy
Commits
ddc0f3d6
Commit
ddc0f3d6
authored
7 months ago
by
Matthew K Defenderfer
Browse files
Options
Downloads
Patches
Plain Diff
fix typos and add exit to usage
parent
6858595e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!15
Update main to v0.1.1
,
!14
Set default location for split-file-info output
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/split-info-file.sh
+7
-6
7 additions, 6 deletions
src/split-info-file.sh
with
7 additions
and
6 deletions
src/split-info-file.sh
+
7
−
6
View file @
ddc0f3d6
#!/bin/bash
set
-euo
pipefail
set
-eu
x
o
pipefail
############################################################
# Default Values #
...
...
@@ -21,8 +21,9 @@ usage()
>
&2
cat
<<
EOF
Usage:
$0
[ -h ] [ -l | --lines ] [ -o | --outdir ]
[ -n | --ntasks ] [ -p | --partition] [ -t | --time ] [ -m | --mem ]
log
log
EOF
exit
0
}
help
()
...
...
@@ -32,10 +33,10 @@ help()
Splits a GPFS policy log into multiple parts for batch array processing
Usage:
$0
[ -h ] [ -l | --lines ] [ -o | --outdir ]
[ -n | --ntasks ] [ -p | --partition] [ -t | --time ] [ -m | --mem ]
log
log
General:
-h|--help Print this
H
elp.
-h|--help Print this
h
elp.
Required:
log Path to the log file to split
...
...
@@ -44,7 +45,7 @@ Split Parameters:
-l|--lines Max number of records to save in each split (default: 5000000)
File Parameters:
-o|--outdir Directory path to store split files in. Defaults to
${
log
}
.d in
${
log
}
's parent directory.
-o|--outdir Directory path to store split files in. Defaults to log.d in log's parent directory.
Job Parameters:
-n|--ntasks Number of job tasks (default: 4)
...
...
@@ -105,7 +106,7 @@ fi
>
&2
cat
<<
EOF
--------------------------------------------------------------------------------
GPFS log:
${
log
}
Output Directory
$
(
outdir
)
Output Directory
$
{
outdir
}
Lines per File:
${
lines
}
ntasks:
${
ntasks
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment