Only in the First
old.txt and new.txt each hold a list of names, one per line, both already in alphabetical order. Print the names that are in old.txt and not in new.txt.
Example 1
old.txt
ada ben cy dee
new.txt
ben dee eli
prints
ada cy
Constraints
- Up to 12 names in each
- No name twice in a file
Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.
More Bash problems
- Share of ErrorsHard
- Shift Them UpHard
- Sort Into FoldersHard
- TODOs per FileHard
- The Biggest FileHard
- Totals per GroupHard
- Word Count TableHard
- Count the LinesBeginner