Re: piping

2017-12-17 Thread Ahmad Samir
On 17 December 2017 at 01:06, Cameron Simpson wrote: > On 16Dec2017 22:34, Patrick Dupre 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 gene

Re: piping

2017-12-16 Thread Patrick Dupre
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

Re: piping

2017-12-16 Thread Samuel Sieb
On 12/16/2017 03:06 PM, Cameron Simpson wrote: On 16Dec2017 22:34, Patrick Dupre 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) ?

Re: piping

2017-12-16 Thread Cameron Simpson
On 16Dec2017 22:34, Patrick Dupre 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

Re: piping

2017-12-16 Thread Samuel Sieb
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 generat

piping

2017-12-16 Thread Patrick Dupre
Hello, 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) ? Thank. =