in reply to Combining Data Files

What have you tried so far? Does it have to be in perl? Sounds like a simple shell script should suffice.
--------------
"But what of all those sweet words you spoke in private?"
"Oh that's just what we call pillow talk, baby, that's all."

Replies are listed 'Best First'.
Re^2: Combining Data Files
by gellyfish (Monsignor) on Mar 23, 2005 at 16:33 UTC

    Yeah something like:

    if [ -s $FILE1 -a -s $FILE2 ] then cat $FILE1 $FILE2 >$NEWFILE && rm $FILE1 $FILE2 fi
    would seem to suffice by the description.

    /J\

Re^2: Combining Data Files
by naChoZ (Curate) on Mar 23, 2005 at 16:36 UTC

    I agree. Right from the shell prompt:

    test -f file1 && test -f file2 && cat file1 file2

    If the files are huge, pipe it through gzip or tar or something.

    --
    "This alcoholism thing, I think it's just clever propaganda produced by people who want you to buy more bottled water." -- pedestrianwolf