Hello all, I could use some advice on writing a script:
I have two files.
One looks like this:
Grades.txt
Mary 100
John 90
Doug 85
The other looks like this:
ID Numbers
Mary 000111
John 000222
Doug 000333
Now, I'm trying to figure out how to write a script using awk, sed, cut, or anything really that will produce output like this:
000111 100
000222 90
000333 85
I need to grab the name and score, read them into a variable, then compare the name variable against the id list and print id number, score.
Any shell wizardry out there tonight?
Thanks,
Pros
Bookmarks