Re: [Nolug] sort

From: Jess Planck <jesse.planck_at_gmail.com>
Date: Thu, 5 Sep 2013 11:59:49 -0500
Message-Id: <AD91D0B8-5E90-4947-BF05-ABF5786740B7@gmail.com>

Mistaken chunk of an incomplete if … then operation?
http://stackoverflow.com/questions/3224878/what-is-the-purpose-of-the-colon-gnu-bash-builtin

Or

Mistaken attempt to sort with a delimiter? So that : string might need some quoting.
http://stackoverflow.com/questions/1037365/unix-sort-with-tab-delimiter

Otherwise the : is a special Bash character, so you may need to check the shell you are using since not all shells are created equal.

Jess

On Sep 5, 2013, at 11:47 AM, Diann Smith <diann170@gmail.com> wrote:

> this is the full code given to me.
>
> sort -t : +1 $fname | awk -F '{printf("%-14.14s%-16.16s%-20.20s%.-15.15s\n", $1, $2, $3, $4)}'
> Barbara
>
> On Thu, Sep 5, 2013 at 11:23 AM, Ron Johnson <ron.l.johnson@cox.net> wrote:
> Are you sure that's valid syntax?
>
> $ sort -t: +1 x.txt
> sort: cannot read: +1: No such file or directory
>
> $ sort --version
> sort (GNU coreutils) 8.20
>
>
>
> On 09/05/2013 11:09 AM, Diann Smith wrote:
> could someone please tell me what sort -t : +1 $fname - what the +1 means. i got the -t : part , but when I google sort +1 no good answers.
>
>
> --
> "Mundus vult decipi, ergo decipiatur"
> Petronius
>
> ___________________
> Nolug mailing list
> nolug@nolug.org
>

___________________
Nolug mailing list
nolug@nolug.org
Received on 09/05/13

This archive was generated by hypermail 2.2.0 : 09/05/13 EDT