LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need help to write script... (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-to-write-script-909023/)

suchi123 10-19-2011 02:03 PM

need help to write script...
 
Input:

rid: x
fname: x
lname: x
mname: x

rid: y
fname: y
mname: y

rid: z
lname: z
mname: z

rid: a
fname: a
lname: a

output should be like this
fname,lname,mname
x,x,x
y,,y
,z,z
a,,a


Thanks in advance...

unSpawn 10-19-2011 04:44 PM

Somehow I get the idea the solution is already offered in your previous thread you never responded to after the last reply?..

TB0ne 10-20-2011 10:13 AM

Quote:

Originally Posted by suchi123 (Post 4502770)
Input:

rid: x
fname: x
lname: x
mname: x

rid: y
fname: y
mname: y

rid: z
lname: z
mname: z

rid: a
fname: a
lname: a

output should be like this
fname,lname,mname
x,x,x
y,,y
,z,z
a,,a


Thanks in advance...

From your other thread about the same question, I'll again post this:
Quote:

Originally Posted by TB0ne
Also, you may want to try writing your own scripts, and reading one of the THOUSANDS of scripting tutorials that you can easily find. We don't mind HELPING you, but you've not shown any effort into doing this yourself, but expect us to do it for you.



All times are GMT -5. The time now is 09:59 AM.