10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file with three fields of data for example say we have
1420 $12.56 45
3456 $15.89 14
2341 $25.87 32
I need to use a command to show who is getting paid the highest amount to standard output. I am not sure if I should use a sort command or a copy and paste... (1 Reply)
Discussion started by: drew211
2. UNIX for Dummies Questions & Answers
I need to filter the output of a command and display certain data only. How can i do this ?
My file contain:
$ cat abc.txt
... (3 Replies)
Discussion started by: crazydude80
3. Shell Programming and Scripting
After Sorting directories and files i have got following output as below, now i only want the strings common in them, so the actual output should be as below in the bottom. How do i do that?
File to be modified:-
Common Components for ----> AA... (4 Replies)
Discussion started by: asirohi
4. Shell Programming and Scripting
Im trying to sort all this data.
I need to get a list out of the data (websites) and just list them out can anyone point me in the right direction. Im working with dans guardian.
2009.6.10 6:26:50 - 192.168.42.200... (5 Replies)
Discussion started by: darknirvana
5. Shell Programming and Scripting
suppose i have a student.dat file whose format is
studentno studentname semester marks1 marks2 marks3 total
then how can i sort first in semester wise and then total wise? I mean semester wise ranking wise record should be displayed. Semester should be displayed in ascending order... (6 Replies)
Discussion started by: salman4u
6. UNIX for Dummies Questions & Answers
I would like to know given that I have 3 columns.
Let say I have first 3 columns to do operation and these operation output is printed out each line by line using AWK and associative array.Currently in the output file, I do a sort by -r for the operation output.
The problem comes to... (1 Reply)
Discussion started by: ahjiefreak
7. Shell Programming and Scripting
I have a text file comprising of 3 columns
1. First column - numeric count/frequency of error codes
2. Second column - alphanumeric hyphenated error code
3. Third column - Error code description (alphanumeric)
184 ABCD-954 Errorcodedescription1
35645 DFMS-323 Errorcodedescription2
43534 ... (2 Replies)
Discussion started by: inditopgun
8. UNIX for Dummies Questions & Answers
Suppose I want to find the number of uniq lines in a file. I use the following command:
sort file1 | uniq -c | wc -l
But if for some reason sort fails, the above command returns 0 as the answer.
Why would sort fail ? sort makes use of directories /tmp or /var/tmp to store temporary files.... (7 Replies)
Discussion started by: the_learner
9. UNIX for Dummies Questions & Answers
I am facing a small problem while I am doing the sort.
I have a file which has the following data.
When I do a sort on this file.
the result set is
qwaxcA (4 Replies)
Discussion started by: Andysundar
10. Shell Programming and Scripting
I'm trying to sort a file.dat with the sort command. The data contained by file.dat is similar to the data set below:
It is relatively easy to sort the data in ascending or descending order, but the problem is... (11 Replies)
Discussion started by: bjorb