10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am having contents in a file like below,
I want to sort the above contents like,
I have tried in this way, (7 Replies)
Discussion started by: Sumanthsv
2. Shell Programming and Scripting
I want to be able to sort/print a hash based on the string length of the values.
%hash = (
key1 => 'jeri',
key2 => 'corona',
key3 => 'una,
I want to be able to print in the following order (smallest to largest)
OR... (1 Reply)
Discussion started by: jdilts
3. Shell Programming and Scripting
I am trying to sort numbers in the string in descending order but for some reason sort fails.
n129$ echo "81 240" | sort -r
I am not sure what am I doing wrong. Is there a 100% reliable way to make sure that sort will always work. I mean on SUNS and IBM machines. ... (4 Replies)
Discussion started by: aoussenko
4. Shell Programming and Scripting
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
5. UNIX for Dummies Questions & Answers
It is for HP-Unix B.11.31.
1. List the directories, which directories name has given particular string.
Example: Directories with name "Build"
2. On the output of 1. list the directories by creation date as sort order.
I tried with; find . -type d -name "Build*"
... (3 Replies)
Discussion started by: Siva SQL
6. Shell Programming and Scripting
I want to sort lines by how many times a string occurs in each line (the most times first).
I know how to do this in two passes (add a count field in the first pass then sort on it in the second pass).
However, can it be done more optimally with a single AWK command? My AWK has improved... (11 Replies)
Discussion started by: Michael Stora
7. Shell Programming and Scripting
Currently am working with 10g db. I want to sort the below o/p.
SQL> select partition_name from user_tab_partitions where table_name='USER_AUDIT';
PART_AUDIT_NOV08... (4 Replies)
Discussion started by: sathik
8. Shell Programming and Scripting
I'm not familiar with find.
If i use find in a certain directory i want it to show based on hierarchy.
find . type d
i want it to show like this
do i need to use... (5 Replies)
Discussion started by: ryandegreat25
9. Shell Programming and Scripting
basically i want to numerically sort the entire lines based on the build number. I dont zero pad the numbers because thats "how it is" ;-)
sort -n won't work because it starts from the beginning.
... (10 Replies)
Discussion started by: gurpal2000
10. Shell Programming and Scripting
I need help to sort a file contents.
I am using sort -r option to basically reverse the comparison in descending order. However, i found out that my file is not sorted according, can anyone please help.
My data is something like:-
19.234355545 222... (5 Replies)
Discussion started by: ahjiefreak