Spectral properties of one dimensional insulators and superconductors