Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Use Files As Markers - Re: Combining Data Files

by metadoktor (Hermit)
on Mar 24, 2005 at 07:56 UTC ( #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
Node Status?
node history
Node Type: note [id://441988]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2019-07-17 12:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?