I need to remove all lines that contain spaces in a file. I know very little bash. Any help would be greatly appreciated.

Probably the easiest way could be to pipe your file through grep(1).
Assuming the file in question is named "YOURFILE" try

cat YOURFILE | grep -v " "

at your favorite shell prompt.
Pls note the single blank between the double quotes.

UUoC ;) grep -v " " file

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.