echo ${Array1[@]} ${Array2[@]} | tr ' ' '\n' | sort | uniq -u
Output
key10
key7
key8
key9
You can add sorting if you need
More Related Contents:
- Loop through an array of strings in Bash?
- How to split a string into an array in Bash?
- Check if a Bash array contains a value
- Creating an array from a text file in Bash
- Reading output of a command into an array in Bash
- How can I store the “find” command results as an array in Bash
- How can I join elements of an array in Bash?
- How to sort an array in Bash
- Passing arrays as parameters in bash
- Capturing output of find . -print0 into a bash array
- Remove an element from a Bash array
- How to pass an associative array as argument to a function in Bash?
- How to return an array in bash without using globals?
- Accessing a JSON object in Bash – associative array / list / another model
- Print array elements on separate lines in Bash?
- Arrays in unix shell?
- Reading a space-delimited string into an array in Bash
- Bash indirect array addressing?
- Convert command line arguments into an array in Bash
- How to check if element exists in array with jq
- I am getting error “array.sh: 3: array.sh: Syntax error: “(” unexpected”
- Convert multiline string to array [duplicate]
- How to pass an array argument to the Bash script
- Assign to a bash array variable indirectly, by dynamically constructed variable name
- How to merge two arrays in a zipper like fashion in Bash?
- Assigning an Array Parsed With jq to Bash Script Array
- Easiest way to check for an index or a key in an array?
- How do I assign ls to an array in Linux Bash?
- Check if an element is present in a Bash array [duplicate]
- How to copy an array in Bash?