exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 53 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 53
Topic #: 1
[All LFCS Questions]

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?

  • A. <<
  • B. <|
  • C. !<
  • D. &<
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Strib
6 months, 4 weeks ago
Selected Answer: A
he double less-than symbol << is used for here documents in many shell scripting languages. It allows reading input from the current source until a specified delimiter is encountered. For example, consider the following command: command <<END This is the input until the END delimiter is reached. END In this case, the command would read everything between the <<END and END as input until it encounters the delimiter END on a separate line without any trailing spaces. The input is then processed by the command.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago