Write a sed command that copies a file to standard output, replacing a sin- gle SPACE as the first character on a line with a 0 (zero) only if the SPACE is immediately followed by a number (0–9). For example:


$ sed '/^ [0-9]/ s/ /0/' filename

Computer Science & Information Technology

You might also like to view...

Which of the following applications would a deque not be well suited for?

a. Applications that require frequent insertions and deletions at the front of a container. b. Applications that require frequent insertions and deletions in the middle of a container. c. Applications that require frequent insertions and deletions at the back of a container. d. Applications that require frequent insertions and deletions at the front and at the back of a container.

Computer Science & Information Technology

Which of the following is the seminal tool used to protect both our critical infrastructure and our individual liberties?

A) Information security B) Society C) Physical security D) Policy

Computer Science & Information Technology

Analyze the following code:

``` Double[] array = {1, 2, 3}; ArrayList list = new ArrayList<>(Arrays.asList(array)); System.out.println(list); ``` a. The code is correct and displays [1, 2, 3]. b. The code is correct and displays [1.0, 2.0, 3.0]. c. The code has a compile error because an integer such as 1 is automatically converted into an Integer object, but the array element type is Double. d. The code has a compile error because asList(array) requires that the array elements are objects.

Computer Science & Information Technology

Which of the following options will refresh connections within an Excel workbook?

A) Click anywhere in the connected data B) Click Refresh in the Backstage area C) Click Refresh All on the Connections group D) Click Refresh in the Insert tab

Computer Science & Information Technology