unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <moasen@zoho.com>
To: help-gnu-emacs@gnu.org
Subject: Re: I want to contribute and chose right project for graduate thesis
Date: Sat, 22 Jul 2017 00:17:14 +0200	[thread overview]
Message-ID: <86shhp77v9.fsf@zoho.com> (raw)
In-Reply-To: 87vaml32zq.fsf@fliptop

Tomas Nordin wrote:

> cut is a program for getting selected
> delimited fields from a file. Some people
> over the years has requested the possibility
> for the program to respect the order of the
> fields specified (cut will maintain the order
> of fields in the file).

cut(1) is a small shell utility, part of the
indispensible Unix (or GNU) tool chain. It is
located in the coreutils package, assuming
a Debian system or fork.

cut is used for simple but effective parsings
of command outputs, for example this one

    #! /bin/zsh
    key () {
        local key=$1
        ascii -t $key | head -n 1 | tr -s  " " | cut -d" " -f 2
    }

You can get the source with

    $ apt-get source coreutils

The cut source will then be in the src/ dir, in
the file cut.c .

cut.c is 832 lines of very good-looking C,
which isn't always the case if someone was
under that illusion.

-- 
underground experts united
http://user.it.uu.se/~embe8573




  reply	other threads:[~2017-07-21 22:17 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-21  8:46 I want to contribute and chose right project for graduate thesis Mario Krajačić
2017-07-21 16:01 ` Emanuel Berg
2017-07-21 18:40   ` Marcin Borkowski
2017-07-21 20:01     ` Emanuel Berg
2017-07-22  4:10       ` Marcin Borkowski
2017-07-22 16:19         ` Emanuel Berg
2017-07-27 23:15       ` Ken Goldman
2017-07-27 23:27         ` Emanuel Berg
2017-07-28 18:55           ` Marcin Borkowski
2017-07-28 19:50             ` Drew Adams
2017-07-29  2:30               ` Emanuel Berg
2017-08-03 17:39                 ` Marcin Borkowski
2017-07-29  2:22             ` Emanuel Berg
2017-07-21 18:30 ` Kevin Buchs
2017-07-21 19:58   ` Emanuel Berg
2017-07-21 21:16 ` Tomas Nordin
2017-07-21 22:17   ` Emanuel Berg [this message]
2017-07-21 22:22   ` Emanuel Berg
2017-07-22 20:55     ` Tomas Nordin
2017-07-22 21:37       ` Emanuel Berg
2017-07-25 17:39         ` Mario Krajačić
2017-07-25 18:30           ` Emanuel Berg
  -- strict thread matches above, loose matches on Subject: below --
2017-07-22 13:33 Richard Melville
2017-07-22 16:25 ` Emanuel Berg

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/emacs/

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

  git send-email \
    --in-reply-to=86shhp77v9.fsf@zoho.com \
    --to=moasen@zoho.com \
    --cc=help-gnu-emacs@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).