Re: Shell-sandwich a file in 2 variable strings
Re: Shell-sandwich a file in 2 variable strings
- Subject: Re: Shell-sandwich a file in 2 variable strings
- From: Gnarlodious <email@hidden>
- Date: Fri, 06 Feb 2004 19:20:08 -0700
Entity Michael Terry spoke thus:
>
Christopher Nebel wrote:
>
>
> Because this passes the contents of the file as a parameter to
>
> echo(1), it will break if somefile contains more than kern.argmax
>
> bytes
>
sysctl kern.argmax
>
>
kern.argmax = 262144
I lost track of this discussion, but I am saying
do shell script "echo " & quoted form of startHTML & " $(<" & flopPOSIX & ")
" & quoted form of endHTML & ">>" & iPathPOSIX
Where flopPOSIX may be any huge file depending on the database size. Is this
command line safe from threats of amputation? I guess I don't know if I am
running it through a shell variable or what.
Test drive my script if you dare:
<
http://www.Gnarlodious.com/OSX/AppleScript/iTunes-iPage.scpt.sit>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.