Computer scienceSystem administration and DevOpsCommand lineWorking with files

Viewing files in shell

Cat finds and shows lines

Report a typo

Read file "/tmp/test.txt" with the cat utility, and make it print numbered lines.

Sample Input 1:

The dogs I know
Have many shapes
For some are big and tall
And some are long
And some are thin
And some are fat and small

Sample Output 1:

     1	The dogs I know
     2	Have many shapes
     3	For some are big and tall
     4	And some are long
     5	And some are thin
     6	And some are fat and small
Write a program in Shell
#!/usr/bin/env bash
solve() {
# add your solution here

}
___

Create a free account to access the full topic