Skip to content

Commit

Permalink
Remove grep and use awk instead
Browse files Browse the repository at this point in the history
  • Loading branch information
parthosa committed Mar 7, 2024
1 parent 176c5d6 commit 48eb19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build-info
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ echo_build_properties() {
echo branch=$(cd "$git_path" && git rev-parse --abbrev-ref HEAD)
echo date=$(date -u +%Y-%m-%dT%H:%M:%SZ)
echo url=$(cd "$git_path" && git config --get remote.origin.url)
echo gpu_architectures=$(cuobjdump "$libcudf_path" 2>/dev/null | grep 'arch = ' | awk -F_ '{print $2}' | sort -n -u | tr '\n' ';')
echo gpu_architectures=$(cuobjdump "$libcudf_path" 2>/dev/null | awk -F_ '/arch =/ {print $2}' | sort -n -u | tr '\n' ';')
for arg in "$@"; do
echo $arg
done
Expand Down

0 comments on commit 48eb19a

Please sign in to comment.