LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2011, 03:03 PM   #1
suchi123
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
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...
 
Old 10-19-2011, 05:44 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Somehow I get the idea the solution is already offered in your previous thread you never responded to after the last reply?..
 
Old 10-20-2011, 11:13 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,935

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by suchi123 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help me write script sharp859 Linux - Newbie 5 04-16-2009 06:41 PM
Better way to write this script faizlo Programming 6 01-08-2009 03:25 AM
how write a script saif Linux - Newbie 8 07-27-2007 01:31 PM
Help with a script I need to write... cmfarley19 Programming 9 12-06-2003 01:10 PM


All times are GMT -5. The time now is 12:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration