LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-01-2006, 11:45 AM   #1
sureshbup
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
Question rearranging columns


Hi to all.

I am new to linux. I have a csv file like this

"21","Ramesh","5","aiubghed"
"21","Ramesh","4","ghed"
"21","Ramesh","0","aiubaiub"
"21","Suresh","5","aghedghed"
"19","Suresh","A","aigheded"
"19","Suresh","A7","aiughedhed"

i need the output like this

Ramesh , suresh
aiubghed , aghedghed
ghed , aigheded
aiubaiub , aiughedhed

Is it possible to do it in awk or sed. Could anyone can help me . I am new to linux.


regards
ramesh
 
Old 11-01-2006, 11:57 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Sorry, I misunderstood the question.

Please ignore.

Last edited by druuna; 11-01-2006 at 12:02 PM.
 
Old 11-01-2006, 12:29 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If this is supposed to be your homework please read the LQ Rules about asking homework questions.
 
Old 11-01-2006, 12:48 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
look into the cut and paste bash commands
 
  


Reply



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
Rearranging Partitions norain Linux - Software 3 08-02-2006 03:37 PM
Rearranging partitions ernesto_cgf Linux - Software 3 06-12-2006 12:30 PM
rearranging my pc => aim: w98b + opensuse; some problems ungua Linux - Newbie 2 11-28-2005 11:02 AM
[Evolution] rearranging summary view HanH Linux - Software 1 03-03-2004 02:57 AM
How can I see the other 10 columns sakulagi Linux - Software 1 06-16-2003 09:45 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:49 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
Open Source Consulting | Domain Registration