Download Latest Version q-56.tar.gz (234.4 kB)
Email in envelope

Get an email when there's a new version of q

Home / v6
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2014-05-26 450 Bytes
RUNS IN PIPE.tar.gz 2014-05-26 163.1 kB
RUNS IN PIPE.zip 2014-05-26 227.8 kB
Totals: 3 Items   391.3 kB 0

Q may be run in a pipe (in conjunction with using the -i option to tell it what do do). Standard input must a pipe or redirected from other than a tty. Q buffers the entire file (i.e. it waits for end of file on its input before processing). So, avoid using with tail -f (unless you plan to explicitly kill tail) Examples

$ echo aaa|q -i "y a b^J"
bbb

$ echo aaa >t5; q -i "y a z^J" < t5 > t6;cat t6; rm t5 t6
zzz
Source: README.md, updated 2014-05-26