10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have 4 files in below format. I took them as an example.
File 1: Cut from position 1-4 then 6-7 then 8-14 then rest left and make them as columns in one new file. Inserting character H to the initial of all line like HCTOT.
CTOT 456787897 Low fever
CTOR 556712345 High fever... (2 Replies)
Discussion started by: Mannu2525
2. Shell Programming and Scripting
I am trying to sort a text file based on column 3, 10, 11 and 12. But certain column are blank for some lines. Column 3 has to be in ascending order after sorting.
Part of my input file is as follows:
CN727990 1 A01 4703 5083 73.28 - A_scaffold000011 4365605 4365985 73.28 +... (10 Replies)
Discussion started by: huiyee1
3. Web Development
I have a HTMl file with 10 columns.
I found a script online that can sort any single column in a HTML file.
But, I would like to sort on multiple columns at once.
Could you please show some pointers?
Thanks (6 Replies)
Discussion started by: jacobs.smith
4. Shell Programming and Scripting
File will have two columns key column and second column which is pipe separated and that need to be sorted.
Below is input file.
Output should be
4, A|B|D|C|F (11 Replies)
Discussion started by: girish119d
5. Shell Programming and Scripting
I need your kind help to solve the below issue
I have an Flat file
I want to add two column with default... (3 Replies)
Discussion started by: Pratik4891
6. Shell Programming and Scripting
I am new here and I need a reel help please
A have a csv file and I want to add new in the end of the file
Devisce Model,VMGuest Name,Host OS Name, Memory Size
And I want to add to new... (3 Replies)
Discussion started by: villebonnais
7. Shell Programming and Scripting
i want sort columns with headers based on another file headers
eg: i'm having an empty file with only coumn names like
lastname firstname title expirydate stlcno status etc...
another file with same column names and some other as well but in different order...
eg:firstname... (2 Replies)
Discussion started by: Man83Nagesh
8. UNIX for Dummies Questions & Answers
Hi, I am trying to sort a file first by the string column, then by the number column.
result should be
xyz1 2 ... (3 Replies)
Discussion started by: fargo
9. UNIX for Dummies Questions & Answers
I have a header which I have to add to a sorted file, however if I use
cat header sortedfile > newfile, the operation takes 2 minutes as the sorted file is over 400mb.
I have noticed that when I sort the 400mb unsorted file, this only takes 14 seconds to create the output.
As... (2 Replies)
Discussion started by: clarcombe
10. 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