Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while IFS=";" read -r col1 col2
  4. do
  5. nevsor=$col1";"$col2
  6.  
  7.         while IFS=";" read -r col11 col22
  8.         do    
  9.         parti=$col11";"$col22
  10.                 if [[ $nevsor == $parti ]]
  11.                 then
  12.                     echo $nevsor";1"
  13.                 elif [[ $nevsor != $parti && $col2 != $col22 ]]
  14.                 then
  15.                     echo $nevsor";0"
  16.                 fi
  17.  
  18.         done < parti.txt
  19. done < nevsor.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement