9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have an input like
18.104.22.168 (5 Replies)
Discussion started by: dnam9917
2. Shell Programming and Scripting
I have a file with the following content:-
181268525,0640613864,X,113,04-jan-2012 14:13:27,... (3 Replies)
Discussion started by: Yoda
3. Shell Programming and Scripting
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
4. Homework & Coursework Questions
I have file ipaddress.txt
I want to sort as
So what sort command do I have to use. (1 Reply)
Discussion started by: RiderOnsky
5. Shell Programming and Scripting
Hi to all.
I'm trying to sort this with the Unix command sort.
I need to get this:
user3:12345687:5.5:2.5:6:1:3:2... (7 Replies)
Discussion started by: daniel.gbaena
6. Shell Programming and Scripting
Hi i have a file containing ip addresses and want to sort those IP addresses in the ascending order.
file (match.txt) contents are:
sort -n match.txt
output is :... (3 Replies)
Discussion started by: manmeet
7. UNIX for Dummies Questions & Answers
I´d like to get a few explanations about how the sort command works when cascading the options.
cscyabl@comet:(develop)> more file
cscyabl@comet:(develop)> sort -n -u file
cscyabl@comet:(develop)> sort -u -n file
10:A1... (8 Replies)
Discussion started by: Indalecio
8. UNIX for Dummies Questions & Answers
I am going to sort a huge flat file using sort command, this file is about 36 million lines, 179 fields delimitered by Ctrl B (002). eg.
I want this file being sorted by the first field, the result is like :
1^B198709........ (2 Replies)
Discussion started by: xli
9. UNIX for Dummies Questions & Answers
Can someone please tell me how to sort a file, based on a particular position within the file?
I have a line sequential file that is 152 bytes per record, in which i need to sort the file based on the numeric data in positions 142-152.
I have done the "man sort" command and see the -k option... (1 Reply)
Discussion started by: rjjenkin
BLK_INIT_QUEUE(9) Block Devices BLK_INIT_QUEUE(9)
blk_init_queue - prepare a request queue for use with a block device
struct request_queue * blk_init_queue(request_fn_proc * rfn, spinlock_t * lock);
The function to be called to process requests that have been placed on the queue.
Request queue spin lock
If a block device wishes to use the standard request handling procedures, which sorts requests and coalesces adjacent requests, then it
must call blk_init_queue. The function rfn will be called when there are requests on the queue that need to be processed. If the device
supports plugging, then rfn may not be called immediately when requests are available on the queue, but may be called at some time later
instead. Plugged queues are generally unplugged when a buffer belonging to one of the requests on the queue is needed, or due to memory
rfn is not required, or even expected, to remove all requests off the queue, but only as many as it can handle at a time. If it does leave
requests on the queue, it is responsible for arranging that the requests get dealt with eventually.
The queue spin lock must be held while manipulating the requests on the request queue; this lock will be taken also from interrupt context,
so irq disabling is needed for it.
Function returns a pointer to the initialized request queue, or NULL if it didn't succeed.
blk_init_queue must be paired with a blk_cleanup_queue call when the block device is deactivated (such as at module unload).
Kernel Hackers Manual 3.10 June 2014 BLK_INIT_QUEUE(9)