I need to remove all lines that contain spaces in a file. I know very little bash. Any help would be greatly appreciated.
roadwarrior
0
Newbie Poster
Recommended Answers
Jump to PostProbably the easiest way could be to pipe your file through grep(1).
Assuming the file in question is named "YOURFILE" trycat YOURFILE | grep -v " "
at your favorite shell prompt.
Pls note the single blank between the double quotes.
All 2 Replies
Reply to this topic
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.