10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
Hi all,
I have a list of numbers. I need an awk command to find out the numbers of elements (number of numbers, sort to speak), the average value the min and max value. Reading the list only once, with awk.
Any ideas?
Thanks! (5 Replies)
Discussion started by: black_fender
5 Replies
3. Shell Programming and Scripting
hi all
i want to remove some descending order number
example :
1 100 200 135.00 Gk_wirs 1
1 100 200 136.00 Gk_wirs 50
1 110 210 138.00 Gk_wirs 60
1 100 200 136.00 Gk_wirs 57 ----> how to remove... (6 Replies)
Discussion started by: nithyanandan
6 Replies
4. Shell Programming and Scripting
Hi,
I have a program written in awk and I want to extend it to do another task.
My program is a list of CVS log reports of a repository. For each file, I have some fields. One of the fields is the comment field. I want to know how I can check if a comment (which is a free text field)... (8 Replies)
Discussion started by: sandeepk1611
8 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I want to short descending all the files according to their size.Please help me.. (1 Reply)
Discussion started by: jyotidas
1 Replies
6. Shell Programming and Scripting
What should be the Shell script that counts a number of unique word contained in a file and print them in alphabetical order line by line? (7 Replies)
Discussion started by: proactiveaditya
7 Replies
7. Shell Programming and Scripting
Hello,
I am trying to print line number/order using this command
awk '{print $0, FNR}' myfilename
11006 A41 1888
11006 A41 1888
11006 A41 1888
11006 A41 ... (2 Replies)
Discussion started by: davidkhan
2 Replies
8. Shell Programming and Scripting
Could somebody solve this problem?
I want to create a list from the last ten modificated files and the end of rows I would like to take an ordinal number in fix position. My solution:
ls -lt | grep ´^-´ | sed 10q | awk ´{printf "%s\t%2i\n", %0, NR}´
But so the ordinal number isn't in a... (1 Reply)
Discussion started by: mig8
1 Replies
9. Shell Programming and Scripting
hello,
how can I filter and get the latest order number (last five digits) below:
input file:
johnmm00001
maryyy00121
johnm100222
johnmm00003
maryyy00122
output file:
johnmm00003
maryyy00122
johnm100222 (6 Replies)
Discussion started by: happyv
6 Replies
10. Shell Programming and Scripting
Hello,
I have a list of all order number like below:
maryu01001
johnm00003
peter02234
catmy66751
For the above, all number must in 5 digits and I need to add one into the number and output a new list like below:
maryu01002
johnm00004
peter02235
catmy66752
How can write a... (20 Replies)
Discussion started by: happyv
20 Replies