101-400 Exam QuestionsBrowse all questions from this exam

101-400 Exam - Question 47


Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?

Show Answer
Correct Answer: A

The character that can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached, is `<<`. The `<<` operator, known as a 'here document', is used in various shell scripting languages like Bash. It allows the user to specify a delimiter, and input is read until that delimiter appears on a line by itself.

Discussion

1 comment
Sign in to comment
DuboisNicolasDuclairOption: A
Oct 21, 2023

The character that can be combined with a separator string to read from the current input source until the separator string (on a separate line without trailing spaces) is reached is: A. `<<` The `<<` operator, known as a "here document," is used for this purpose in various shell scripting languages, including Bash. It allows you to specify a delimiter (the separator string) and then input text until that delimiter is encountered on a line by itself. For example: ```bash cat <<END This is some text. It continues until the END delimiter is reached on a line by itself. END ``` In this example, the input text continues until the "END" delimiter is encountered.