sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

paste.1 (778B)


      1 .Dd 2015-10-08
      2 .Dt PASTE 1
      3 .Os sbase
      4 .Sh NAME
      5 .Nm paste
      6 .Nd merge lines of files in parallel or sequentially
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl s
     10 .Op Fl d Ar list
     11 .Ar file ...
     12 .Sh DESCRIPTION
     13 .Nm
     14 reads single lines from each
     15 .Ar file
     16 and writes them into one line, replacing
     17 .Sy \en
     18 with
     19 .Sy \et
     20 except from the last
     21 .Ar file .
     22 This process is repeated until each
     23 .Ar file
     24 is starved, treating zero-reads as empty lines along the way.
     25 .Pp
     26 If
     27 .Ar file
     28 is '-',
     29 .Nm
     30 interprets it as stdin.
     31 .Sh OPTIONS
     32 .Bl -tag -width Ds
     33 .It Fl d Ar list
     34 Replace
     35 .Sy \en
     36 with escaped characters from
     37 .Ar list
     38 by cycling through it.
     39 .It Fl s
     40 Read each
     41 .Ar file
     42 sequentially instead of in parallel.
     43 .El
     44 .Sh SEE ALSO
     45 .Xr cut 1
     46 .Sh STANDARDS
     47 The
     48 .Nm
     49 utility is compliant with the
     50 .St -p1003.1-2013
     51 specification.