Guest User

Untitled

a guest
Oct 20th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. 1 a
  2. 2 b
  3. 3 c
  4. ...
  5. File2
  6.  
  7. 2 a
  8. 2 c
  9. 2 d
  10. ...
  11.  
  12. 1 a,2 a
  13. 1 b,2 c
  14. ...
  15.  
  16. paste -d, File1 File2 | awk -F, '{n=FN/2;s=""; for (i=1;i<=n;i++){printf "%s%s", s, ($i-$(i+n));s=",";}; print ""}'
  17.  
  18. 1 a
  19.  
  20. 1 a
Add Comment
Please, Sign In to add comment