LinuxQuestions.org
Review your favorite Linux distribution.
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 02-14-2011, 04:34 AM   #1
muzammil.cse
LQ Newbie
 
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
perl file manipulation


file 1
2010-11-21,2
2010-12-01,1

file 2
2010-11-22,12
2010-12-01,11

this is for GD graph and the file file should be like this
2010-11-21,2
2010-11-22,12
2010-12-01,1,11
 
Old 02-14-2011, 04:55 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,008

Rep: Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193
Is there more perl code going around this? If not it would seem a bit of an overkill for something so trivial. I would probably recommend awk if it is only this simple case.

What have you tried so far?
 
  


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
File manipulation in C kalimat Programming 1 05-05-2010 08:47 AM
Date Manipulation in Perl gjagadish Programming 2 09-26-2006 06:39 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM
Typeglob manipulation in Perl coolman0stress Programming 0 10-27-2003 06:05 PM
perl and date manipulation Syncrm Programming 5 10-28-2002 02:05 AM

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

All times are GMT -5. The time now is 01:43 AM.

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