unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Samuel Barreto <samuel.barreto8@gmail.com>
To: "guile-user\@gnu.org" <guile-user@gnu.org>
Subject: how to pipe the output of one process to another using guile ?
Date: Mon, 04 Sep 2017 13:03:11 +0200	[thread overview]
Message-ID: <m2efrmiv4g.fsf@umr5557-mendel-sbar.univ-lyon1.fr> (raw)

Hi everyone,

I was wondering how I could replicate the simple

	cat "my-toy-file.txt" | wc -l

using Guile ? I have been reading the POSIX Pipes and Default Ports
Guile manual entry very thoroughly but I could not wrap my head around
it. (I am not familiar with POSIX and all I am afraid …)

Thank you !
Samuel



             reply	other threads:[~2017-09-04 11:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-04 11:03 Samuel Barreto [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-09-06 21:09 how to pipe the output of one process to another using guile ? tantalum
2017-09-07  6:54 ` Samuel Barreto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2efrmiv4g.fsf@umr5557-mendel-sbar.univ-lyon1.fr \
    --to=samuel.barreto8@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).