From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: I want to contribute and chose right project for graduate thesis Date: Sat, 22 Jul 2017 00:17:14 +0200 Message-ID: <86shhp77v9.fsf@zoho.com> References: <87vaml32zq.fsf@fliptop> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500675489 22284 195.159.176.226 (21 Jul 2017 22:18:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2017 22:18:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 22 00:18:02 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYgFB-00058W-Ne for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Jul 2017 00:17:57 +0200 Original-Received: from localhost ([::1]:44955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYgFH-00075b-98 for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jul 2017 18:18:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYgEr-00075V-IA for help-gnu-emacs@gnu.org; Fri, 21 Jul 2017 18:17:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYgEm-0005Ub-KK for help-gnu-emacs@gnu.org; Fri, 21 Jul 2017 18:17:37 -0400 Original-Received: from [195.159.176.226] (port=40783 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYgEm-0005U3-Di for help-gnu-emacs@gnu.org; Fri, 21 Jul 2017 18:17:32 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dYgEX-0003Bp-FA for help-gnu-emacs@gnu.org; Sat, 22 Jul 2017 00:17:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 37 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:Pq+Q6CbCM9gGadGxYzFtOgpxk5A= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113817 Archived-At: 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