Computer scienceSystem administration and DevOpsCommand lineWorking with files

Viewing files in shell

Text's tail

Report a typo

Read the "/tmp/test.txt" file with the tail utility, and make it print the last two lines.

Sample Input 1:

Lucy Locket lost her pocket,
Kitty Fisher found it;
Not a penny was there in it,
Only ribbon round it.

Sample Output 1:

Not a penny was there in it,
Only ribbon round it.
Write a program in Shell
#!/usr/bin/env bash
solve() {
# add your solution here

}
___

Create a free account to access the full topic