Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Use Files As Markers - Re: Combining Data Files

by metadoktor (Hermit)
on Mar 24, 2005 at 07:56 UTC ( [id://441988]=note: print w/replies, xml ) Need Help??


in reply to Combining Data Files

Whenever you transfer a 'file1.txt' to the machine you should transfer another 'file1.sent' of size 1 byte right after 'file1.txt' has been transferred. You can then have a shell script which checks for these markers and if they show up then you can concatenate the files (if that's what you want).

if [[ -e file1.sent && -e file2.sent ]] then cat file1.txt file2.txt > files.txt fi

metadoktor

"The doktor is in."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-25 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found