9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Trying to sort a bunch of files numerically but can't seem to get the command just right. This is in a IBM AIX machine.
I have a directory that has...
There are a lot more files but this is shortened for the... (5 Replies)
Discussion started by: c3rb3rus
2. Shell Programming and Scripting
How to sort the following output based on lowest to highest BE?
The following sort does not work.
$ sort -t. -k1,1n -k2,2n bfd.txt
BE31.116 0s 0s DOWN DAMP
BE31.116 0s 0s DOWN DAMP
BE31.117 0s 0s ... (7 Replies)
Discussion started by: sand1234
3. UNIX for Dummies Questions & Answers
I have a list of file names in a text document where each file name consists of 4 letters and 3 numbers (for example MACR119). There are 48 file names in the document (they are not in alphabetical or numerical order). I would like to reorder the list of names so that the 48th name is... (3 Replies)
Discussion started by: MDeBiasse
4. UNIX for Dummies Questions & Answers
I have a column of numbers in the following format:
7.12e-05 (6 Replies)
Discussion started by: evelibertine
5. Shell Programming and Scripting
Greetings - I'm not necessarily new to bash scripting - I'm probably between beginner and intermediate, but I have something that I just cannot figure out after many attempts to find it. I have a file that is merely a list of many files, with their respective paths, and a branch path (ClearCase)... (5 Replies)
Discussion started by: 1cor29
6. UNIX for Dummies Questions & Answers
A basic query. In the example file below, I want to sort by column 1 and then by column 2 numerically. I have tried sort -k2n,1 file1 but while this sorts the columns in the correct order, it does not sort column 2 numerically. Any help would be much appreciated. Also, if you have time to... (3 Replies)
Discussion started by: auburn
7. Shell Programming and Scripting
So, I will be working with someone and basically we are trying to build a form that is submitted most likely via the web and the data is just a string of numbers.
Now, each number is part of a numerical value of... (4 Replies)
Discussion started by: tlarkin
8. Shell Programming and Scripting
I got a long list of file name.
My desired output:
Does anybody got idea how to archive it? (11 Replies)
Discussion started by: patrick87
9. UNIX for Dummies Questions & Answers
I have 2 files like this:
What I want is the concatenation of the two files sorted by name (alphabetically) and size (numerically), so the result should be like this:
F3 (cat f1 f2 sorted)
B 700 (2 Replies)
Discussion started by: mrodrig