Hello!
I'm relatively new to Linux as a whole and especially this forum
I use Linux csh scripts primarily in research applications since it is so powerful and flexible. Anyways, I am having trouble getting a csh script to behave where I have two variables (these can be made into files if needed) that comprise of numbers:
file1:
1
2
3
4
5
file2:
1 564
2 2345
8 23
3 6772
4 2
5 1.45
6 24
What I am trying to do is make it so that when the numbers in the first column match up, it prints out the entire line in file2. I've seen lots of threads on simply getting the first column to work, but I can't figure out getting the following kind of result:
res_file:
1 564
2 2345
3 6772
4 2
5 1.45
Removing the file2 lines not corresponding to file1. I've used alot of the suggestions from here in the past, looking forward to actually being in the community! Thanks ahead of time.