Answer the question
In order to leave comments, you need to log in
How to compare two variables (files) and show only differences?
Good day!
Tell me, please, how to compare 2 variables (you can file) and display only the differences?
var1="akker assault atl_diso atl_inspire atl_main_db atl_park atl_pl atl_prof atl_sale atl_shop atl_urban explod freemot groosha nordic pavi prof
sport
"
differences:
( var3="atl_inspire groosha" )
if ; then
echo "not equal"
echo " $var3"
fi
How to get $var3?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question