Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to grep doi from RTF file

v2
cat Bibliography.rtf | sed 's/doi.org//
/g' | grep "^[0-9]" | sed -r "s/.{2}$//" > new.txt

v1
cat Bib.rtf | sed -e 's/doi:/'$'
/g' | grep "^[0-9]" | sed -r "s/.{3}$//" > new.txt
				^ add new lines			^begin with numbers	 ^remove last 3 characters 		

bib.rtf file was created using zotero 6.
select all > right click > create Bibgraphy > export rft
 
PREVIOUS NEXT
Tagged: #grep #doi #RTF #file
ADD COMMENT
Topic
Name
2+2 =