[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cut's counterpart: vcut ?!



On Wed, 16 Nov 2011 16:58:54 +0000, Joao Ferreira Gmail wrote:

> Hi all,
> 
> a crazy ideia just crossed my mind ?
> 
> Is there a command that allows me to "glue" to text files together line
> by line ? more or like the inverse operation of 'cut' ... a vertical
> "cat" :P
> 
> # cat abc a
> b
> c
> # cat 123 1
> 2
> 3
> # vert_cat abc 123 > a1b2c3 # cat a1b2c3.txt a1 b2 c3 #
> 
> :)
> 
> Is there such a 'vert_cat' :)


One way would be to number the lines in each file first, then use join on 
the line number, then remove the line number from the result. There may 
be an easier way, but it is unknown to me.



Reply to: