help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: I want to contribute and chose right project for graduate thesis


From: Tomas Nordin
Subject: Re: I want to contribute and chose right project for graduate thesis
Date: Sat, 22 Jul 2017 22:55:32 +0200

Emanuel Berg <moasen@zoho.com> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]