Need a Car for 6 Months

I could use some help. So I have a seasonal job offer across the country that would require me to drive there, be there for about 6 months and drive home. I would need a car when I’m out there and I don’t have one now. I don’t think leasing a car for that short amount of time is smart but would it be a mistake to buy a car with cash and then sell it after 6 months of using it? I think a used car would be the best option, but I’m not sure the best price range to look at. Thanks for any help or advice, I appreciate it.