projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c959baa
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Sun, 11 Feb 2018 10:12:11 +0000
(11:12 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Sun, 11 Feb 2018 10:12:11 +0000
(11:12 +0100)
arxiv-rename-pdf.sh
patch
|
blob
|
history
diff --git
a/arxiv-rename-pdf.sh
b/arxiv-rename-pdf.sh
index
5ec49c0
..
7b062d6
100755
(executable)
--- a/
arxiv-rename-pdf.sh
+++ b/
arxiv-rename-pdf.sh
@@
-53,7
+53,7
@@
do
do
[[ "${AUTHORS}" ]] && AUTHORS="${AUTHORS} and "
AUTHORS="${AUTHORS}${line}"
- done < <(grep
-q
'<meta name="citation_author"' "${tmp}" | sed -e 's/^.*content="\([^,]*, .\).*$/\1./')
+ done < <(grep '<meta name="citation_author"' "${tmp}" | sed -e 's/^.*content="\([^,]*, .\).*$/\1./')
TITLE=$(grep '<meta name="citation_title"' ${tmp} | sed -e 's/^.*content="\([^"]*\)".*$/\1/')
YEAR=$(echo ${id} | sed -e 's/^\(..\).*$/20\1/')