Read file "/tmp/test.txt" with the cat utility, and make it print numbered lines.
Viewing files in shell
Cat finds and shows lines
Report a typo
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 smallSample 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 smallWrite a program in Shell
#!/usr/bin/env bash
solve() {
# add your solution here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.