Hello,
gawk -f file.awk -v sampl=T <(my_sort files.asc)
This works very well.
Actually, the other suggestions do not work.
>
> On 12/16/2017 01:34 PM, Patrick Dupre wrote:
> > It is not a fedora question, but I am sure that somebody can help me.
> >
> > 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) ?
>
> Assuming you are using bash:
> gawk -f file.awk -v sampl=T <(my_sort files.asc)
>
> That will work as long as gawk is just going to read the data straight
> through and not do any seeking.
> _______________________________________________
> users mailing list -- users(a)lists.fedoraproject.org
> To unsubscribe send an email to users-leave(a)lists.fedoraproject.org
>