A cool one I came across by accident. A fun way to create a plain text file. Redirect stdout of cat to a file, type your text, then close it with ctrl-d<br><br>Sample:<br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
$ cat >filename<br>Hello, Talk<br>^D<br>$ cat filename<br>Hello, Talk<br></blockquote><br>Regards,<br>-Henry<br><br><div class="gmail_quote">On Thu, Dec 15, 2011 at 9:24 PM, William Baxter <span dir="ltr"><<a href="mailto:web-nycbug@superscript.com">web-nycbug@superscript.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Excerpts from Matthew Story's message of Thu Dec 15 00:54:<a href="tel:24%20-0500%202011" value="+12405002011">24 -0500 2011</a>:<br>

<div class="im">> i believe the most portable version is slightly uglier:<br>
><br>
> On Dec 14, 2011, at 6:13 PM, Isaac Levy wrote:<br>
><br>
> >  shout() { echo "$0: $*" >&2; }<br>
> >  barf() { shout "$*"; exit 111; }<br>
> safe() { ${1+"$@"} || barf "cannot $*"; }<br>
>           ^^^^^^^^ this bit is more reliable for sh on Solaris (real Bourne shell)<br>
><br>
<br>
</div>Delightful as the topic of Solaris compatibility may be I don't think it's worth<br>
going that far.  The ${1+"$@"} construct is indispensable for compatibility in<br>
cases when an empty list is legitimate while an unintended empty argument is<br>
not:<br>
<br>
  for ${1+"$@"}<br>
<br>
versus<br>
<br>
  for "$@"<br>
<br>
But an empty string and an empty list are both erroneous for safe().  While the<br>
execution details may vary from shell to shell, I consider it a case of pilot<br>
error to pass in either an empty argument or no argument to a function that<br>
requires a program.  A function cannot ultimately protect the caller from his<br>
own error.<br>
<br>
Cheers, W.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
talk mailing list<br>
<a href="mailto:talk@lists.nycbug.org">talk@lists.nycbug.org</a><br>
<a href="http://lists.nycbug.org/mailman/listinfo/talk" target="_blank">http://lists.nycbug.org/mailman/listinfo/talk</a><br>
</div></div></blockquote></div><br>