10-30-2009
Thank you very much
I think your reply has solved my issue.
the actual file had a list of Ips that was not getting sorted
by using the -n switch. I had to modify the file to get the
last octet off of the file and use sort -n to get it to work.
Really appreciate your help.
-w
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
What's the command to sort a file in ascending order and redirect the output to another file?
Thanks!!!!!! (1 Reply)
Discussion started by: gyik
1 Replies
2. Shell Programming and Scripting
I appreciate all the help that I've already received but am running into one problem. I can find how to add something before a file with ascending numbers but not like this. I basically have a file that looks like this:
100
101
102
103
104
I need to add the following before each line with... (5 Replies)
Discussion started by: kerpm
5 Replies
3. Shell Programming and Scripting
How can I check if array is in ascending order?
---------- Post updated at 01:53 PM ---------- Previous update was at 01:25 PM ----------
Done it now (0 Replies)
Discussion started by: kristinu
0 Replies
4. UNIX for Dummies Questions & Answers
Hi there
I have to enhance my current file looping to ensure the oldest file being processed first.
current command:
for FILENAME in `find $MY_DIRECTORY -follow -type f`
I manage to get command for order by date modified descending, just can't get the ascending order. Please help
for... (3 Replies)
Discussion started by: elsie512
3 Replies
5. UNIX for Dummies Questions & Answers
I have a column of numbers in the following format:
1.722e-05
2.018e-05
2.548e-05
2.747e-05
7.897e-05
4.016e-05
4.613e-05
4.613e-05
5.151e-05
5.151e-05
5.151e-05
6.1e-05
6.254e-05
7.04e-05
7.12e-05
7.12e-05 (6 Replies)
Discussion started by: evelibertine
6 Replies
6. Shell Programming and Scripting
Hi
I am using this
cat substitutionFeats.txt | gawk '{$0=gensub(/\t/,"blabla",1);print}' | gawk '{print length, $0}' | sort -n | sort -r
and the "sort -n" command doesn't work as expected: it leads to a wrong ordering:
64 Adjustable cuffs
64 Abrasion-
64 Abrasion pas
647 Sanitized 647... (4 Replies)
Discussion started by: louisJ
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a sequence which has 30000 strings which looks like this
>string2991 234445
>string224 470561
>string121 675386
>string4098 177229
>string8049 255838
>string8 672382
>string1115 578415
I want it to be arranged in ascending order
>string8 672382
>string121... (5 Replies)
Discussion started by: siya@
5 Replies
8. Shell Programming and Scripting
HI
I have a file
# vi assc
values order fin
100 34 45
200 12 64
120 10 23
Here I need to check whether the values of second column"order"
is arranged ascendingly
Note: Always order column will be arranged either in ascending or descending order
How to make it?... (1 Reply)
Discussion started by: Priya Amaresh
1 Replies
9. Shell Programming and Scripting
Hi,
I need to list files in ascending order. Filenames are in format inpTDT_1, inpTDT_2, inpTDT_3 and so on.
I want to list them in the ascending order based on the digit after underscore and send the output to a file.
Please help (5 Replies)
Discussion started by: Neelkanth
5 Replies
10. Shell Programming and Scripting
Hi,
i had a data block (coming from pipe from other codes) as:
H YF_CO.dat 77164 11/17/2013 04:00:02 731374590.96 1 1 731374590.96 76586 77164 578 2988 Y
H YF_CO.dat 77164 11/17/2013 04:00:07 731374590.96 1 4 731374590.96 76586 77164 578 2988 Y
H YF_CO.dat 77178 ... (5 Replies)
Discussion started by: pr5439
5 Replies
LEARN ABOUT MOJAVE
readahead
readahead(8) System Manager's Manual readahead(8)
NAME
readahead - file preloader for boot process optimization
SYNOPSIS
readahead [options] <file-list> [another-file-list [...]]
DESCRIPTION
readahead is a files preloader designed to optimize the disk I/O during the boot process.
OPTIONS
-b, --build
build optimised files list only, without sorting.
-s, --sort
build and sort list of files only (implies -b).
-o, --output <file>
write sorted list of files to file.
-d, --dont-sort
preload files described by an already sorted files list.
-h, --help
print the usage information.
-v, --verbose
enable the verbose mode.
-t, --timing
report time spent on each operation.
-m, --maxsize <max size>
maximum size in KiB a file can be in order to be preloaded, default is 10240.
<file-list> [another-file-list [...]]
One or more files containing the list of files to be preloaded or sorted. The files list can be generated by readahead-collector(8).
FILES
/etc/default/readahead-fedora
SEE ALSO
readahead-collector(8), readahead(2),
AUTHORS
Arjan van de Ven <arjan@infradead.org>,
Ziga Mahkovec <ziga.mahkovec@klika.si>, Karel Zak <kzak@redhat.com>,
This manual page was written by Raphael Geissert <geissert@debian.org>
July 2011 readahead(8)