- #1
- 1,120
- 1
Hi, I've been running code which very frequently calls books.csv. e.g:
Except, I'm trying to move away from using temporary files or frequently calling books.csv to improve efficiency. So I tried something like
Needless to say, it explodes (giving me about 40 lines of grep [data here] no such file or director), 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?
Code:
grep -i horror books.csv > temp
Except, I'm trying to move away from using temporary files or frequently calling books.csv to improve efficiency. So I tried something like
Code:
bookfile=$(cat books.csv)
grep -i horror $bookfile
Needless to say, it explodes (giving me about 40 lines of grep [data here] no such file or director), 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?