I have one file that looks like this:
I also have another file like this:
I need to replace the number in the second file with the value associated with it in my first file.
Result should look like:
If anybody could give me a start I think I could figure it out. I started learning awk for awhile and then stopped for a few months and now my mind is blank!
Any advice/help would be greatly appreciated.
Code:
0,9840_10
1,9840_12
2,9840_9
3,9940_3
4,9840_11
..
..
I also have another file like this:
Code:
2007-11-06 07:50:03 Drive #13 is DOWN-TLD on server.
2007-11-06 07:50:07 Drive #4 is DOWN-TLD on server.
2007-11-06 07:50:10 Drive #15 is DOWN-TLD on server.
2007-11-06 07:50:10 Drive #0 is DOWN-TLD on server.
2007-11-06 07:50:13 Drive #18 is DOWN-TLD on server.
2007-11-06 07:50:16 Drive #2 is DOWN-TLD on server.
I need to replace the number in the second file with the value associated with it in my first file.
Result should look like:
Code:
2007-11-06 07:50:03 Drive 9840_12 is DOWN-TLD on server.
2007-11-06 07:50:07 Drive 9840_1 is DOWN-TLD on server.
2007-11-06 07:50:10 Drive 9840_11 is DOWN-TLD on server.
..
..
If anybody could give me a start I think I could figure it out. I started learning awk for awhile and then stopped for a few months and now my mind is blank!
Any advice/help would be greatly appreciated.