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: Axel Luttgens <email@hidden>
- Date: Sun, 01 Feb 2004 12:51:19 +0100
Chris Janton wrote:
[...]
If the HTML is just a single tag you can do
echo "TAG-OPEN" `cat somefile` "TAG-CLOSE" > some-file
which is one less process than "echo", "cat", "echo"
Right! May prove useful under heavy calls!
Now, unless I'm wrong, the above may also lead to problems while
handling large files, as the result of `cat somefile` would be passed as
part of echo's arguments.
Anyway, one question, multiple answers :-)
Axel
_______________________________________________
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.