LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   perl file manipulation (https://www.linuxquestions.org/questions/programming-9/perl-file-manipulation-862548/)

muzammil.cse 02-14-2011 04:34 AM

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

grail 02-14-2011 04:55 AM

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?


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