Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while IFS=";" read -r col1 col2
- do
- nevsor=$col1";"$col2
- while IFS=";" read -r col11 col22
- do
- parti=$col11";"$col22
- if [[ $nevsor == $parti ]]
- then
- echo $nevsor";1"
- elif [[ $nevsor != $parti && $col2 != $col22 ]]
- then
- echo $nevsor";0"
- fi
- done < parti.txt
- done < nevsor.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement