i am going to buy a car today and when the car starts it jumps up and down between 1k and 2k rpms and it does that the entire time the car is on

i was told it was a o2 sensor on the back of the intake manifold but i just want some other opinions on what it could be, also the tranny grinds 2nd gear is there any way i can fix this without buying a new tranny i heard syncromesh will help, now i also need a few things if anyone has them for sale: the o2 sensor, the green plug thats in the vtec solenoid, and prices on a ls cable tranny. thanks alot guys any help will be highly appreciated