Whitespace functions as a separator between commands and/or variables. Whitespace consists of either spaces, tabs, blank lines, or any combination thereof. In some contexts, such as variable assignment, whitespace is not permitted, and results in a syntax error.
Blank lines have no effect on the action of a script, and are therefore useful for visually separating functional sections.
$IFS(internal field separator), the special variable separating fields of input to certain commands. It defaults to whitespace.
Definition: A field is a discrete chunk of data expressed as a string of consecutive characters. Separating each field from adjacent fields is either whitespace or some other designated character (often determined by the $IFS). In some contexts, a field may be called a record.
To preserve whitespace within a string or in a variable, use quoting.
Blank lines have no effect on the action of a script, and are therefore useful for visually separating functional sections.
$IFS(internal field separator), the special variable separating fields of input to certain commands. It defaults to whitespace.
Definition: A field is a discrete chunk of data expressed as a string of consecutive characters. Separating each field from adjacent fields is either whitespace or some other designated character (often determined by the $IFS). In some contexts, a field may be called a record.
To preserve whitespace within a string or in a variable, use quoting.
Comments
Post a Comment
https://gengwg.blogspot.com/