是否有可能采取bash中两个数组的差异。
如果您可以建议我这样做的话,那真的很棒。
代码:
Array1=( "key1" "key2" "key3" "key4" "key5" "key6" "key7" "key8" "key9" "key10" )
Array2=( "key1" "key2" "key3" "key4" "key5" "key6" )
Array3 =diff(Array1, Array2)
Array3 ideally should be :
Array3=( "key7" "key8" "key9" "key10" )
感谢您的帮助。
蛊毒传说
白板的微信
相关分类