Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Combining Data Files

by RazorbladeBidet (Friar)
on Mar 23, 2005 at 16:29 UTC ( [id://441819]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://441819]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-25 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found