Search Results

Search: Posts Made By: lokendrasb
6,577
Posted By Scrutinizer
With actual arrays (bash, ksh): #!/bin/bash ...
With actual arrays (bash, ksh):
#!/bin/bash
array1=(1 3 lok kam)
array2=(3 kam 5) ...
6,577
Posted By Akshay Hegde
Yes. DGPickett I did a mistake #!/bin/bash ...
Yes. DGPickett I did a mistake

#!/bin/bash

String1="1 3 lok kam"
String2="3 kam 5"

for i in ${String2[@]}; do
f=0
for j in ${String1[@]}; do
[ "$i" == "$j" ] && f=1 && break...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 08:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy