dropbox1349

awk command to join text files awk -f ./join.sh text1.txt text2.txt

Nov 6th, 2020 (edited)
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.02 KB | None | 0 0
  1. text1.txt
  2. **********************************
  3. Second To Sun - Leviathan (2020);http://alfa.org/forum/index.php?showtopic=341325
  4.  
  5.  
  6. text2.txt
  7. **********************************
  8. Second to Sun-L2020-By Samaritianin.rar;http://alfa.org/forum/index.php?showtopic=341325
  9. JKr.rui.rar;http://alfa.org/forum/index.php?showtopic=341325
  10.  
  11.  
  12. NOTE:
  13. I want this
  14.  
  15. Second To Sun - Leviathan (2020);http://alfa.org/forum/index.php?showtopic=341325;Second to Sun-L2020-By Samaritianin.rar;JKr.rui.rar;
  16.  
  17.  
  18. OR consider this situation
  19.  
  20. text1.txt
  21. **********************************
  22. alfa beta;www.google.com
  23. Light Dweller - CR, Technical Metal;http://alfa.org;http://beta.org;http://gamma.org;
  24.  
  25.  
  26. text2.txt
  27. **********************************
  28. Jack to ride.zip;http://alfa.org;
  29. JKr.rui.rar;http://gamma.org;
  30. Nofj ogk.png;http://gamma.org;
  31.  
  32. I want that text3.txt should be
  33.  
  34. alfa beta;www.google.com
  35. Light Dweller - CR, Technical Metal;http://alfa.org;http://beta.org;http://gamma.org;Jack to ride.zip;JKr.rui.rar;Nofj ogk.png;
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
Add Comment
Please, Sign In to add comment