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

Re: [K12OSN] OT: bash help

Wow I never knew about 'info'...thanks!  Sort is totally freaking
awesome. I wanted to remove lines in my csv  where the certain fields
in a given row were blank (names this time). So I did the same
command:     sort -u  -k83,83 -t,

And all the blank fields, being non-unique, got removed and removed
the lines in the csv!  I wonder if they ever intended it to be used
that way or if it was a happy accident or 'haxident' as I like to call
them.  :)

Thanks again,

On 8/7/07, Les Mikesell <les futuresource com> wrote:
> Peter Hartmann wrote:
> > Thanks Les!  That's awesome to know.
> The unix sort utility was written to be the only sort you'd ever need
> for text files or streams but it can get pretty weird if you need the
> optional character position offsets in the fields, multiple key fields,
> or some of the other options.   And the GNU version is one of many
> programs where you have to use 'info' instead of man to get the real
> documentation.
> --
>    Les Mikesell
>     les futuresource com
> _______________________________________________
> K12OSN mailing list
> K12OSN redhat com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>

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