Advertisement
nsaunders

Untitled

Jan 24th, 2023
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. nicholas@mordor:~/regex$
  2. nicholas@mordor:~/regex$ cat input.txt
  3.  
  4.  
  5. a : one
  6. b : two
  7. c : three
  8. d : four
  9. a : first
  10. b : second
  11. c : third
  12. d : fourth
  13.  
  14. nicholas@mordor:~/regex$
  15. nicholas@mordor:~/regex$ cat out.txt
  16.  
  17.  
  18.  
  19. a,one,b,two,c,three,d,four
  20. a,first,b,second,c,third,d,fourth
  21.  
  22.  
  23.  
  24.  
  25. nicholas@mordor:~/regex$
  26. nicholas@mordor:~/regex$ awk '{print $1 "\t\t" $3}' input.txt
  27.  
  28.  
  29. a one
  30. b two
  31. c three
  32. d four
  33. a first
  34. b second
  35. c third
  36. d fourth
  37.  
  38. nicholas@mordor:~/regex$
  39.  
  40.  
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement