Write the commands to remove all the space characters stored in the shell variable text. Be sure to assign the result back to text. First use tr to do it and then do the same thing with sed.

What will be an ideal response?


First solution, with tr:
text="$(echo $text | tr -d ' ')"

Second solution, with sed:
text="$(echo $text | sed 's/ //g')"

Computer Science & Information Technology

You might also like to view...

The options to start the playing of an audio file inserted into a slide are On Click and ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

To format existing text, you must first select it.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

If a client's Web browser is configured to accept cookies, the session ID is assigned to a temporary cookie named ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

To create an initial report that can be modified in Layout view, click ____ on the Create tab.

A. Layout B. Report C. Report Layout D. Simple Report

Computer Science & Information Technology