Re: piping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 17 December 2017 at 01:06, Cameron Simpson <cs@xxxxxxxxxx> wrote:
On 16Dec2017 22:34, Patrick Dupre <pdupre@xxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux