Guest User

Untitled

a guest
Jun 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. $ join -j 100 a.txt 1.txt
  2. a 1
  3. a 2
  4. a 3
  5. a 4
  6. b 1
  7. b 2
  8. b 3
  9. b 4
  10. c 1
  11. c 2
  12. c 3
  13. c 4
  14. d 1
  15. d 2
  16. d 3
  17. d 4
  18.  
  19. cat a.txt | while read LINE_A
  20. do
  21. cat 1.txt | while read LINE_1
  22. do
  23. prinft “${LINE_A} と ${LINE_1} を比較したら ”
  24. if [ “${LINE_A}” = “LINE_1” ] ; then
  25. printf “同じもの”
  26. else
  27. printf “違うもの”
  28. fi
  29. echo “でした”
  30. done
  31. done
Add Comment
Please, Sign In to add comment