remove new lines
hi
Code:
10,"Special Projects,bangaram",0,,0 Code:
10,"Special Projects,bangaram",0,,0 here logic is every row should be 5 comma's if not just concatenate to next line..(it deletes the new lines) that's it.. plz tel me how to write shell script... |
What ?
Please explain and SPELL OUT YOUR WORDS !!!! "please" IS NOT SPELLED AS "plz" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! this is NOT a telephone and you are NOT !!!!! TEXTING!!!!!!!!!!!!!! so please REFRAIN from using "text-speak" as to a shell script we will NOT do it for you so please POST what you have done so far and where you are stuck |
in my file have 5 columns..
in that middle of that data have new lines .. just delete new lines and add to previous line.. That's it |
please post what you have so far for the script
|
Quote:
Code:
sed '/^X/{N;s/\n/ /;}' |
All times are GMT -5. The time now is 09:20 AM. |