On 17 December 2017 at 01:06, Cameron Simpson <c...@cskk.id.au> wrote:
> On 16Dec2017 22:34, Patrick Dupre <pdu...@gmx.com> wrote: > >> I do: >> my_sort files.asc > new_file.asc >> and then >> gawk -f file.awk -v sampl=T new_file.asc >> to get what I want. >> >> how can I do the same in a single command with a pipe (and not generating >> the new_file.asc) ? >> > > my_sort files.asc | gawk -f file.awk -v sampl=T > > You need to tell gawk to read from the standard input instead of a file so try this: my_sort files.asc | gawk -f file.awk -v sampl=T - -- Ahmad Samir
_______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org