Skip to content
Snippets Groups Projects
Commit ddc0f3d6 authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

fix typos and add exit to usage

parent 6858595e
No related branches found
No related tags found
2 merge requests!15Update main to v0.1.1,!14Set default location for split-file-info output
#!/bin/bash
set -euo pipefail
set -euxo 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 Help.
-h|--help Print this help.
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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment