Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dbpedia-assoc
MARVIN-config
Commits
5c81952c
Commit
5c81952c
authored
Apr 08, 2020
by
kurzum
Browse files
Merge branch 'master' of
https://git.informatik.uni-leipzig.de/dbpedia-assoc/marvin-config
parents
246f004e
05aae1d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions.sh
View file @
5c81952c
...
...
@@ -61,10 +61,12 @@ postProcessing() {
fi
# Handling of redirects, i.e. copy to log and rename old
mkdir
$LOGDIR
/redirected
for
i
in
$(
find
$EXTRACTIONBASEDIR
-name
"*_redirected.ttl.bz2"
)
;
do
cp
$i
$LOGDIR
/redirected
;
rename
-f
's/_redirected//'
$i
;
mkdir
-p
$LOGDIR
/unredirected/
for
redirectedFile
in
$(
find
$EXTRACTIONBASEDIR
-name
"*_redirected.ttl.bz2"
)
;
do
unredirectedFile
=
$(
echo
$redirectedFile
|
sed
's|_redirected\.ttl\.bz2$|\.ttl\.bz2|g'
)
;
[
-f
$unredirectedFile
]
&&
cp
-vn
"
$unredirectedFile
"
"
$LOGDIR
/unredirected/"
;
# cp -vn $redirectedFile $LOGDIR/redirected;
rename
-f
's/_redirected//'
$redirectedFile
;
done
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment