Sponsored Content
Full Discussion: Sort (bash command)
Top Forums Shell Programming and Scripting Sort (bash command) Post 302070113 by booboo on Friday 31st of March 2006 01:18:20 PM
Old 03-31-2006
I'm going to digest this and let you know how I do.

thanks guys Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to sort decimal values in bash

Hi, I have a list of values from associative array from 0,..till 1.0000. I tried various sort options; sort -g, sort -nr but it still couldnt work. In other words, the numbers are not sorted accordingly. Please help. Thanks. (1 Reply)
Discussion started by: ahjiefreak
1 Replies

2. Shell Programming and Scripting

bash ps; remove the header, sort and reinsert

Hi, I'm ssh'ing into a server using ruby and sending a one-liner to retrieve the output of the 'ps aux' command. So far, this is what I have: ps aux | sort -r -n -k3 | sed -e '1s/^/this is first\n/' | head -n10 With this I can insert a line at position 1, but I would rather extract the... (3 Replies)
Discussion started by: gekeha
3 Replies

3. Shell Programming and Scripting

How to Sort Floating Numbers Using the Sort Command?

Hi to all. I'm trying to sort this with the Unix command sort. user1:12345678:3.5:2.5:8:1:2:3 user2:12345679:4.5:3.5:8:1:3:2 user3:12345687:5.5:2.5:6:1:3:2 user4:12345670:5.5:2.5:5:3:2:1 user5:12345671:2.5:5.5:7:2:3:1 I need to get this: user3:12345687:5.5:2.5:6:1:3:2... (7 Replies)
Discussion started by: daniel.gbaena
7 Replies

4. UNIX for Dummies Questions & Answers

Sort data by the end of each line using BASH.

I am trying to sort data within a text document by the information at the end of each line. Please see below for an example: <Profile_0 Name="Random name 0" Description="This is the description." Category="System" ProfileFlags.DWD="6" ABCD="{FF350E61-4FFF-4600-BFFF-3B27DD4BA746}"/>... (6 Replies)
Discussion started by: Davinator
6 Replies

5. Shell Programming and Scripting

Is it Possible to sort a list of hexadecimal numbers using "sort" command?

Hello Everybody :) !!!. i have question in mind, is it possible to sort a list of hexadecimal numbers using "sort" command? (9 Replies)
Discussion started by: Kesavan
9 Replies

6. Shell Programming and Scripting

BASH: Sort four lines based on first line

I am in the process of sorting an AutoHotkey script's contents so as to make it easier for me to find and view its nearly 200 buzzwords (when I forget which one corresponds with what phrase, which I do now and then). About half to two-thirds of the script's key phrases correspond to locations... (7 Replies)
Discussion started by: SilversleevesX
7 Replies

7. Shell Programming and Scripting

Bash - remove duplicates without sort

I need to use bash to remove duplicates without using sort first. I can not use: cat file | sort | uniq But when I use only cat file | uniq some duplicates are not removed. (4 Replies)
Discussion started by: locoroco
4 Replies

8. UNIX for Dummies Questions & Answers

Bash script to sort files

I've got a disorganized list of items and quantities for each. I've been using a combination of grep and sort to find out how much to buy of each item. I'm tired of having to constantly using these commands so I've been trying to write a shell script to make it easier, but I can't figure out how... (3 Replies)
Discussion started by: PTcharger
3 Replies

9. Shell Programming and Scripting

How do i sort lines lexigraphical in bash?

I am currently having some problems with my script not sorting my files lexiographically. The error seem to be localized here where i sort the utt2spk file, which is done like this.. for x in test train; do for f in text utt2spk; do sort data/$x/$f -o... (7 Replies)
Discussion started by: kidi
7 Replies

10. UNIX for Beginners Questions & Answers

How to sort file with certain criteria (bash)?

I am running a command that is part of a script and this is what I am getting when it is sorted by the command: command: ls /tmp/test/*NDMP*.z /tmp/test/CARS-GOLD-NET_CHROMJOB-01-XZ-ARCHIVE-NDMP.z /tmp/test/CARS-GOLD-NET_CHROMJOB-01-XZ-NDMP.z... (2 Replies)
Discussion started by: newbie2010
2 Replies
KRB5_DIGEST(3)						   BSD Library Functions Manual 					    KRB5_DIGEST(3)

NAME
krb5_digest, krb5_digest_alloc, krb5_digest_free, krb5_digest_set_server_cb, krb5_digest_set_type, krb5_digest_set_hostname, krb5_digest_get_server_nonce, krb5_digest_set_server_nonce, krb5_digest_get_opaque, krb5_digest_set_opaque, krb5_digest_get_identifier, krb5_digest_set_identifier, krb5_digest_init_request, krb5_digest_set_client_nonce, krb5_digest_set_digest, krb5_digest_set_username, krb5_digest_set_authid, krb5_digest_set_authentication_user, krb5_digest_set_realm, krb5_digest_set_method, krb5_digest_set_uri, krb5_digest_set_nonceCount, krb5_digest_set_qop, krb5_digest_request, krb5_digest_get_responseData, krb5_digest_get_rsp, krb5_digest_get_tickets, krb5_digest_get_client_binding, krb5_digest_get_a1_hash -- remote digest (HTTP-DIGEST, SASL, CHAP) suppport LIBRARY
Kerberos 5 Library (libkrb5, -lkrb5) SYNOPSIS
#include <krb5.h> typedef struct krb5_digest *krb5_digest; krb5_error_code krb5_digest_alloc(krb5_context context, krb5_digest *digest); void krb5_digest_free(krb5_digest digest); krb5_error_code krb5_digest_set_type(krb5_context context, krb5_digest digest, const char *type); krb5_error_code krb5_digest_set_server_cb(krb5_context context, krb5_digest digest, const char *type, const char *binding); krb5_error_code krb5_digest_set_hostname(krb5_context context, krb5_digest digest, const char *hostname); const char * krb5_digest_get_server_nonce(krb5_context context, krb5_digest digest); krb5_error_code krb5_digest_set_server_nonce(krb5_context context, krb5_digest digest, const char *nonce); const char * krb5_digest_get_opaque(krb5_context context, krb5_digest digest); krb5_error_code krb5_digest_set_opaque(krb5_context context, krb5_digest digest, const char *opaque); const char * krb5_digest_get_identifier(krb5_context context, krb5_digest digest); krb5_error_code krb5_digest_set_identifier(krb5_context context, krb5_digest digest, const char *id); krb5_error_code krb5_digest_init_request(krb5_context context, krb5_digest digest, krb5_realm realm, krb5_ccache ccache); krb5_error_code krb5_digest_set_client_nonce(krb5_context context, krb5_digest digest, const char *nonce); krb5_error_code krb5_digest_set_digest(krb5_context context, krb5_digest digest, const char *dgst); krb5_error_code krb5_digest_set_username(krb5_context context, krb5_digest digest, const char *username); krb5_error_code krb5_digest_set_authid(krb5_context context, krb5_digest digest, const char *authid); krb5_error_code krb5_digest_set_authentication_user(krb5_context context, krb5_digest digest, krb5_principal authentication_user); krb5_error_code krb5_digest_set_realm(krb5_context context, krb5_digest digest, const char *realm); krb5_error_code krb5_digest_set_method(krb5_context context, krb5_digest digest, const char *method); krb5_error_code krb5_digest_set_uri(krb5_context context, krb5_digest digest, const char *uri); krb5_error_code krb5_digest_set_nonceCount(krb5_context context, krb5_digest digest, const char *nonce_count); krb5_error_code krb5_digest_set_qop(krb5_context context, krb5_digest digest, const char *qop); krb5_error_code krb5_digest_request(krb5_context context, krb5_digest digest, krb5_realm realm, krb5_ccache ccache); const char * krb5_digest_get_responseData(krb5_context context, krb5_digest digest); const char * krb5_digest_get_rsp(krb5_context context, krb5_digest digest); krb5_error_code krb5_digest_get_tickets(krb5_context context, krb5_digest digest, Ticket **tickets); krb5_error_code krb5_digest_get_client_binding(krb5_context context, krb5_digest digest, char **type, char **binding); krb5_error_code krb5_digest_get_a1_hash(krb5_context context, krb5_digest digest, krb5_data *data); DESCRIPTION
The krb5_digest_alloc() function allocatates the digest structure. The structure should be freed with krb5_digest_free() when it is no longer being used. krb5_digest_alloc() returns 0 to indicate success. Otherwise an kerberos code is returned and the pointer that digest points to is set to NULL. krb5_digest_free() free the structure digest. SEE ALSO
krb5(3), kerberos(8) HEIMDAL
February 18, 2007 HEIMDAL
All times are GMT -4. The time now is 07:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy