Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9346274
swhid2int2int2swhid.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
300 B
Subscribers
None
swhid2int2int2swhid.sh
View Options
#!/bin/bash
if
[
-z
"
$1
"
-o
-z
"
$2
"
-o
!
-f
"
$1
"
]
;
then
echo
"Usage: [SORT_FLAGS=...] swhid2int2int2swhid.sh IN_SWHID2INT.bin OUT_INT2SWHID.bin"
exit
1
fi
swh
graph
map
dump
-t
swhid2int
"
$1
"
\
|
sort
-n
-k
2
$SORT_FLAGS
\
|
cut
-f
1
\
|
swh
graph
map
write
-t
int2swhid
"
$2
"
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Jul 4, 3:51 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3237866
Attached To
rDGRPH Compressed graph representation
Event Timeline
Log In to Comment