ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
10,"Special Projects,bangaram",0,,0
10,"Statutory/ Internal Audit , MO reporting (incl Excel Spreadsheet uploadation)", bangaram,0,,0
10,"Complience with SVCCL", bangaram, 0,, 0
10, "Release of incentives / commission to all channel partners.
", bangaram, 0,, 0
10,"Timely processing of sales orders to channel partners", bangaram, 0,, 0
10," Balance sheet Reviwe", bangaram, 0,, 0
10," Ensuring Critical Reconciliation on monthly basis. (IN-GL)", bangaram, 0,, 0
10, "Timely & accurate closure of Accounts.
", bangaram, 0,, 0
11," Opex Spend on communication activites", bangaram, 0,, 0
11," Opex Spend on communication activites", bangaram ,0,, 0
i want to output like
Code:
10,"Special Projects,bangaram",0,,0
10,"Statutory/ Internal Audit , MO reporting (incl Excel Spreadsheet uploadation)", bangaram,0,,0
10,"Complience with SVCCL", bangaram, 0,, 0
10, "Release of incentives / commission to all channel partners.", bangaram, 0,, 0
10,"Timely processing of sales orders to channel partners", bangaram, 0,, 0
10," Balance sheet Reviwe", bangaram, 0,, 0
10," Ensuring Critical Reconciliation on monthly basis. (IN-GL)", bangaram, 0,, 0
10, "Timely & accurate closure of Accounts.", bangaram, 0,, 0
11," Opex Spend on communication activites", bangaram, 0,, 0
11," Opex Spend on communication activites", 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...
Last edited by unSpawn; 03-08-2014 at 06:54 AM.
Reason: //vBB code tags
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
Ok..so what you're really after is to take any line that starts with a double-quote ("), and join it to the end of the line above it. You've shown no effort of your own, because that question has been asked (and answered), THOUSANDS of times on Google already, and if you tried to look it up, you'd have found it. An example:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.