Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix paths used in rdf2hdtcat #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions hdt-java-cli/bin/rdf2hdtcat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function showhelp {
}

# Defaults
declare rdf2hdt="bin/rdf2hdt.sh"
declare hdtCat="bin/hdtCat.sh"
declare rdf2hdt="rdf2hdt.sh"
declare hdtCat="hdtCat.sh"
declare input="input.rdf"
declare -i lines
declare output="output.hdt"
Expand Down Expand Up @@ -91,7 +91,6 @@ for (( i=$splits; i>1; i=i/2 )); do
echo "***************************************************************"
echo "Merging $i hdt files: " "$input"_split_*_"$i".hdt
echo "***************************************************************"
echo -n "$input"_split_*_"$i".hdt | xargs -d' ' -n2 -P$threads bash -c 'temp=${2%_*.hdt} ; bin/hdtCat.sh $1 $2 ${1%_*.hdt}_${temp#*split_}_$0.hdt' $((i/2))
command='temp=${2%_*.hdt} ; '$hdtCat' $1 $2 ${1%_*.hdt}_${temp#*split_}_$0.hdt'
echo -n "$input"_split_*_"$i".hdt | xargs -d' ' -n2 -P$threads bash -c "$command" $((i/2))
done
Expand Down
5 changes: 2 additions & 3 deletions hdt-java-package/bin/rdf2hdtcat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function showhelp {
}

# Defaults
declare rdf2hdt="bin/rdf2hdt.sh"
declare hdtCat="bin/hdtCat.sh"
declare rdf2hdt="rdf2hdt.sh"
declare hdtCat="hdtCat.sh"
declare input="input.rdf"
declare -i lines
declare output="output.hdt"
Expand Down Expand Up @@ -91,7 +91,6 @@ for (( i=$splits; i>1; i=i/2 )); do
echo "***************************************************************"
echo "Merging $i hdt files: " "$input"_split_*_"$i".hdt
echo "***************************************************************"
echo -n "$input"_split_*_"$i".hdt | xargs -d' ' -n2 -P$threads bash -c 'temp=${2%_*.hdt} ; bin/hdtCat.sh $1 $2 ${1%_*.hdt}_${temp#*split_}_$0.hdt' $((i/2))
command='temp=${2%_*.hdt} ; '$hdtCat' $1 $2 ${1%_*.hdt}_${temp#*split_}_$0.hdt'
echo -n "$input"_split_*_"$i".hdt | xargs -d' ' -n2 -P$threads bash -c "$command" $((i/2))
done
Expand Down