• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shell-sandwich a file in 2 variable strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Shell-sandwich a file in 2 variable strings (From: Chris Janton <email@hidden>)

  • Prev by Date: Re: Burning a CD
  • Next by Date: Re: Shell-wrap a file in 2 variable strings
  • Previous by thread: Re: Shell-sandwich a file in 2 variable strings
  • Next by thread: Re: Shell-wrap a file in 2 variable strings
  • Index(es):
    • Date
    • Thread