Can anyone help me with this?
They give me a list of authors and books I’m supposed to copy into the terminal.
- List all books that were written by “Dan Brown”
- Using a single command, create a new file called sorted_books.txt that contains a list of the books in books.txt by sorted by title.
- Using a single command, create a new file called books_by_george_orwell.txt which should only contain those books by George Orwell, sorted by title.
And then the challenge which I believe should be using a wild card (.*)
Create a new file called authors.txt which lists only the authors of the books, alphabetized by first name. The list should be unique (i.e. Dan Brown is not listed twice) and should be numbered.
I’m so lost with trying to use grep and other flags, I’m pretty lost.