I have a file like this:
foo, bar, foo1
bar, foo
foo
I want it like this:
foo
bar
foo1
bar
foo
foo
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to remove empty lines in the stream just add
| grep -xv ''If you mean that columns are separated with
,, you can use something like:I must note that that will not work in Mac OS X (thanks to Frost for the tip).
When you are in Mac OS X, you must use another construction that is not so nice: