Created
October 7, 2022 21:59
-
-
Save chantra/3c06ff7722568c928b79e3ba5b8ae5a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
declare -a myarray=(a z d "e f") | |
readarray -t test_names < \ | |
<(printf '%s\0' "${myarray[@]}" "$@" | sort -z -u | xargs -0n1) | |
for test_name in "${test_names[@]}" | |
do | |
echo $test_name | |
done |
Author
chantra
commented
Oct 7, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment