I have one file like this:
This can be easily sorted by the following command:
But I have another file like this:
This file can't be sorted by file |sort -k5,5n or any other command.
The only way I've gotten it to sort is by the following:
I am wondering if there is a certain criteria that will cause you to need to use a character numerical sort instead of a column sort? I am sort of confused on this.
In addition, I am also wondering if sort allows you to use the case insensitive option with numerical sorts. What if I had Scratch4 and scratch4 as paths? From what I can see, you can't use the numerical sort and the -f option even if you specify the column and character to use. It will always put the upper case at the top. Is there a way to turn this off through collation or LC_COLLATE?
Last edited by newbie2010; 09-30-2013 at 03:57 PM..
I usually ise find to search a file or name on the unix, since I am not administrator, there will be many line appear 'cannot access',usually a hundred of lines. How can I prevent this line coming out? only show I want?
The command I use is :
find / -name abcdef -print
Thank all expert. (1 Reply)
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
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)
Hi all,
Can you please tell me the command, with which one can know the amount of space a specific directory has used.
df -k . ---> Displays, the amount of space allocated, and used for a directory.
du -k <dir name> - gives me the memory used of all the files inside <dir>
But i... (2 Replies)
I am trying to output a log file from cp usage. I think this can be achieved. In my code I have this.
cp -i -v ~/files/* ~/backups/oldfiles/;; > ~/logs/logfile.logThe error I get is "syntax error near unexpected token '>'
What am I missing? (7 Replies)
Hi,
Could you please let me know, why we should not use '.' in move command, if we use it, is it something wrong.. Please share the details on it.
/home/rahualux/emp.csv /home/rahualux/details/employee_files/.
Or other example for mutlipile files
/home/rahualux/*.csv... (3 Replies)
Discussion started by: rahualux
3 Replies
LEARN ABOUT ULTRIX
rrpc_inq_interfaces
rrpc_inq_interfaces(3ncs)rrpc_inq_interfaces(3ncs)Name
rrpc_inq_interfaces - obtain a list of the interfaces that a server exports
Syntax
#include <idl/c/rrpc.h>
void rrpc_$inq_interfaces(handle, max_ifs, ifs, l_if, status)
handle_t handle;
unsigned long max_ifs;
rrpc_$interface_vec_t ifs[];
unsigned long *l_if;
status_$t *status;
Arguments
handle An RPC handle.
max_ifs The maximum number of elements in the array of interface specifiers.
ifs An array of rpc_$if_spec_t.
l_if The index of the last element in the returned array.
status The completion status. If the completion status returned in is equal to status_$ok , then the routine that supplied it was
successful.
Description
The routine returns an array of RPC interface specifiers.
Restrictions
On the client side, because of the way the calls are defined and implemented in the run-time library you must explicitly call into the
entry point vector table for the interface to send an request across the network. The following is an example of a call that works
(*rrpc_$client_epv.rrpc_$inq_interfaces)(handle,
(unsigned long) max_ifs, ifs, &l_if, &status);
The server side stub routines call the entry point on behalf of the client. The results of the call are then passed back to the client.
FilesSee Alsointro(3ncs)rrpc_inq_interfaces(3ncs)