Bash script

From HPCWIKI
Revision as of 13:04, 28 March 2023 by Admin (talk | contribs) (새 문서: A summary for some importat Bash configuration {| class="wikitable" |+ !Command !Description |- |set |'''set [options] [arguments]''' sign (-) is used with the command’s option to enable that option and the plus sign (+) is used with the command’s option to disable that option {| class="wikitable" | -a |It defines those variables or functions which are created or modified or exported. |- | -b |It informs the job termination. |- | -B |To do the task of the brace expansion....)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A summary for some importat Bash configuration

Command Description
set set [options] [arguments]

sign (-) is used with the command’s option to enable that option and the plus sign (+) is used with the command’s option to disable that option

-a It defines those variables or functions which are created or modified or exported.
-b It informs the job termination.
-B To do the task of the brace expansion.
-C It disables the overwriting feature of the existing file.
-e It exits for non-zero exit status value.
-f It disables the filename generation task.
-h It saves the location of the command where it has been used.
-m It enables job control.
-n It reads the commands.
-t It exits from the command after executing a single command.
-u It traces the unset variables.
-v It prints the shell input lines.
-x It displays the commands and their attributes sequentially. It is mainly used to debug the script.