From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tomas Nordin Newsgroups: gmane.emacs.help Subject: Re: I want to contribute and chose right project for graduate thesis Date: Sat, 22 Jul 2017 22:55:32 +0200 Message-ID: <87pocs2nuj.fsf@fliptop> References: <87vaml32zq.fsf@fliptop> <86o9sd77mr.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500756974 10131 195.159.176.226 (22 Jul 2017 20:56:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Jul 2017 20:56:14 +0000 (UTC) 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 22:56:09 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 1dZ1RW-00027L-81 for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Jul 2017 22:56:06 +0200 Original-Received: from localhost ([::1]:48314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZ1Rb-0005zU-Nz for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Jul 2017 16:56:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZ1RB-0005zD-Oy for help-gnu-emacs@gnu.org; Sat, 22 Jul 2017 16:55:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZ1R6-0002Gk-Ut for help-gnu-emacs@gnu.org; Sat, 22 Jul 2017 16:55:45 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:47972) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dZ1R6-0002GO-Ij for help-gnu-emacs@gnu.org; Sat, 22 Jul 2017 16:55:40 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 3A39220A72 for ; Sat, 22 Jul 2017 22:55:38 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3xFKfK5bkTzypd for ; Sat, 22 Jul 2017 22:55:37 +0200 (CEST) In-Reply-To: <86o9sd77mr.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.67.36.66 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:113828 Archived-At: Emanuel Berg writes: > Despite using cut 27 times in my zsh source, > I have never experienced any problems and > I don't understand what is lacking. > Perhaps because I have used it to parse command > outputs, not file contents ... tho my intuition > tells me, that shouldn't matter! Care to share > an example where cut as it presently > stands fails? I hope I have not made the impression that I think it fails somehow, I was merely trying to give a tip on something to possibly hack on for a thesis. Maybe participate in the thread on the coreutils list if feelings against the suggestion are strong? :) But since I cannot resist, here is my rewrite of the suggestion: $ cat feb17.csv | head -n 1 Datum,Transaktion,Kategori,Belopp,Saldo $ cut -d, -f 1,3 feb17.csv | head -n 1 Datum,Kategori # can we ask cut to reorder the fields by requesting them in other order? $ cut -d, -f 3,1 feb17.csv | head -n 1 Datum,Kategori # seems not So the suggestion is about outputting the fields as requested on the command line.