Created
August 30, 2022 09:27
-
-
Save otrack/0516310695a9115063f96ee9dc217d25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WHO=psutra | |
DBLP_ALIAS=09/5760 | |
BIB_ALIAS=ps | |
wget --quiet https://dblp.org/pid/${DBLP_ALIAS}.bib?param=1 -O ${WHO}.bib | |
i=$(grep DBLP: ${WHO}.bib | wc -l) | |
while [[ $(grep -q DBLP: ${WHO}.bib; echo $?) -eq 0 ]]; | |
do | |
sed 0,/DBLP:[^,]*/s/DBLP:[^,]*/${BIB_ALIAS}${i}/ -i ${WHO}.bib | |
i=$((i-1)) | |
done | |
biber -q --tool --output_align --output_indent=2 --output_fieldcase=lower ${WHO}.bib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment