Skip to content

Commit 383173d

Browse files
committed
modified LLspecific bash script
1 parent 48bc96d commit 383173d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed
Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1-
mkdir -p llinkfiles
1+
#!/bin/sh
22

3-
gawk < $1 '{
3+
4+
#mkdir -p llinkfiles
5+
filename=$1
6+
7+
gawk < $filename '{
48
match ($3 , /<http:\/\/(.*).dbpedia.org\/resource\/.*>/ ,m)
59
{
10+
Q=$1
11+
lng=m[1]
12+
613
gsub("-","_",m[1])
714
system("touch ./llinkfiles/interlanguage_links_same_as_" m[1] ".ttl")
815
print $1,$2,$3,"." >> "./llinkfiles/interlanguage_links_same_as_" m[1] ".ttl"
16+
917
}
1018
}'
19+
20+
21+
22+

0 commit comments

Comments
 (0)