One dimensional scalar field equations involving an oscillatory nonlinear term