LPIC-1 101-500 Exam · Objective 103.7

Replacing every run of whitespace

103.7Standard

In colors.txt, replace every run of two or more whitespace characters with one space.

Apply the replacement to all matches on each line.

red  green   blue

Which command is appropriate?

Replacing every run of whitespace · Answer choices
Question IDKP-103-009
EnvironmentGNU sed 4.x
Last technical review2026-08-12
Report an error or rights issue
Progress and questions

Path & Pass is an independent learning site and is not affiliated with any certification body. Questions are original practice content based on published objectives.