1

Using paste command every nth number of file

view story
linux-howto

http://www.unix.com – Hi, I want to use paste command in a loop that does it every 6 files. My sample files are like the ones below. Code: 20010101.txt 20010106.txt 20010111.txt 20010116.txt 20010121.txt 20010126.txt 20010131.txt 20010205.txt 20010210.txt 20010215.txt 20010220.txt 20010225.txt 20010302.txt 20010307.txt 20010312.txt 20010317.txt 20010322.txt 20010327.txt ...20011227.txt each file contains 1-column data which I need to paste together to make a 6-column file paste 20010101.txt 20010106.txt 20010111.txt 20010116.txt 20010121.txt 20010126.txt > 200101.txt paste 20010131.txt 20010205.txt 200 (HowTos)