Advertisement
DD3AH

lines2columns

Feb 20th, 2020
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. $ cat col
  2. 1
  3. 2
  4. 3
  5. 4
  6. 5
  7. 6
  8. 7
  9. 8
  10. 9
  11. 10
  12. 11
  13. 12
  14.  
  15. $ perl -ne 'if(++$n==2){$n=0;print $_;}else{chomp;print "$_\t"}' col
  16. 1 2
  17. 3 4
  18. 5 6
  19. 7 8
  20. 9 10
  21. 11 12
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement