Computer scienceSystem administration and DevOpsCommand lineWorking with files

File descriptors and pipes

Add new content

Report a typo

The programming teacher, Mr. Smith, has a list of his students. He keeps this list in /tmp/students.txt file. Jerry has just joined Mr. Smith's class. Write a program that will add Jerry to the list of other students.

Sample Input 1:

Dina
Bob
Katy

Sample Output 1:

Dina
Bob
Katy
Jerry
Write a program in Shell
#!/usr/bin/env bash
solve() {
# add your solution here

}
___

Create a free account to access the full topic