Hi2all!
I'm reading a file which looks like this:
232,544,7656,548
33,45
344,576,7656
User copies and pastes one line:
read i
echo $i| sed 's/,/\n/g' | while read i; do
command
done
Now in next step, I need to know how many "words" were in pasted line and based on that count, test them like this (compare their values):
if [[ word1 = word2 && word2 = word3 && ... ]]; then
ok
else
not ok
fi
I'm reading a file which looks like this:
232,544,7656,548
33,45
344,576,7656
User copies and pastes one line:
read i
echo $i| sed 's/,/\n/g' | while read i; do
command
done
Now in next step, I need to know how many "words" were in pasted line and based on that count, test them like this (compare their values):
if [[ word1 = word2 && word2 = word3 && ... ]]; then
ok
else
not ok
fi