LX0-103 Exam QuestionsBrowse all questions from this exam

LX0-103 Exam - Question 41


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 '<<' operator is used in shell scripting as part of the 'here document' syntax. It reads from the current input source until a specified delimiter string is reached, which must be on a separate line with no trailing spaces. This matches the description given in the question.

Discussion

1 comment
Sign in to comment
linux_adminOption: A
Feb 12, 2023

<<" is a shell operator used in shell scripts to specify the "here document" redirection. It is used to read from the current input source until a specified delimiter string is reached. The format for the here document is as follows: command << delimiter input data delimiter The input data between the delimiter and the second appearance of the delimiter is passed as standard input to the command. The delimiter string must appear on a line by itself, with no trailing spaces.