bash - How to navigate to certain point in file using curl? -


for reasons i'm writing bash script in need navigate point in utf-8 plaintext web page (this 1 precise gutenberg.org/files/2701/2701-0.txt), getting in first place using curl. command i'm using is:

curl -s http://gutenberg.org/files/2701/2701-0.txt|say

how make start reading point in book (i.e start of chapter)

you want:

chapter=4 curl -s "$url" | sed -n '/^chapter '"$chapter"'\./,$p' | 

Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -