Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F10881462
getinspirenames
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
477 B
Subscribers
None
getinspirenames
View Options
#! /usr/bin/env bash
IN
=
src/Analyses
OUT
=
spires2inspire.txt
>
$OUT
for
acc in
$IN
/*_S*.cc
;
do
aold
=
$(
basename
$acc
.cc
)
echo
"Translating
$aold
"
sid
=
$(
echo
$aold
|
sed -e
's/.*_S\([0-9]\+\).*/\1/'
)
iid
=
$(
wget --quiet http://inspirehep.net/search?p
=
find+key+7075677 -O -
|
grep /record/
|
\
sed -e
"s:.*/record/\([0-9]\+\).*:\1:"
|
sort
|
uniq
)
anew
=
$(
echo
$aold
|
sed -e
"s/S
$sid
\+/I
$iid
/"
)
echo
"
$aold
$anew
"
>>
$OUT
#break
done
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 3, 6:24 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4970861
Default Alt Text
getinspirenames (477 B)
Attached To
rRIVETHG rivethg
Event Timeline
Log In to Comment