Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: jb bh
Added: Mar 22, 2017 9:11 AM
Modified: Nov 29, 2018 12:08 PM
Views: 44
Tags: no tags
Transpose every n rows into columns:
  1. awk 'ORS=NR%7?FS:RS' infile
  2.  
  3. ###or in R:
  4. as.data.frame(split(data, 1:x))