Needless to say, it explodes (giving me about 40 lines of: "grep [data here] no such file or directory"), that's before I even try and save my grep output as a variable. Don't suppose anyone knows what path I need to be taking? Thanks in advance
Set your variable as follows:
bookfile=`cat books.csv`
Then your grep should get every line that has the word "horror" in it. If you want specific fields from each line, you'll need to do something similar to: