Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Sort help req'd
Name: Malcs72 Date: May 6, 2003 at 04:39:28 Pacific OS: UNIX CPU/Ram: Pentium
Comment:
Does anybody know if it if possible to sort a file excluding the first row (Header) or do I have to tail the remaining rows to another file and then sort in that file.
If this is so, I need a little further help with awk and NR to utilise the number of rows, and then subtract by 1 to tail the file.
Summary: Hi, This might help you. #include <stdio.h> #define SWAP(a,b) a+=b;b=a-b;a-=b int main() { int num1, num2; printf("Please enter two numbers to Sort : \n"); scanf("%d %d", &num1, &num2); print...
Summary: Here's a kludge: ls -1|nawk ' { e=substr($0,length($0)-1); gsub(/[A-Za-z]/,"",e); printf ("%s %s\n", e, $0) } '| sort -n| cut -d " " -f 2 # with awk get the last two number of the file name, and outp...
Summary: hi, i installed linux on my system this week, i just worked out how to get the java virtual machine onto it but i can't write any code because i have keyboard problems. Some keys are different, and cr...