1
2
3
4
5
6
7
8
9
10
11
12
13
$ cat file
some
date
$ b=( some data )
$ if ! diff <(echo ${b[*]}) file; then
  echo "different"
fi
1c1,2
< some data
---
> some
> date
different