[Novalug] What is the name of a simple command|
Mackenzie Morgan
macoafi at gmail.com
Wed Apr 8 07:04:27 EDT 2009
On Wednesday 08 April 2009 6:49:15 am Michael Henry wrote:
> Mackenzie Morgan wrote:
> > Of course, if your goal was just to add bar's contents to the end of
> foo's
> > and have it all stay in foo, just tweak the above for that:
> > cat foo bar > foo
> > or
> > cat bar >> foo
> The natural-seeming first invocation, ``cat foo bar > foo``
> unfortunately doesn't work. Before ``cat`` executes, the shell has
> already clobbered ``foo`` with the redirection operator. GNU ``cat`` is
> smart enough to detect this problem and warn you after the fact::
I should test things before I type them :( Now I'm wondering how I did that
before...
--
Mackenzie Morgan
http://ubuntulinuxtipstricks.blogspot.com
apt-get moo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://calypso.tux.org/pipermail/novalug/attachments/20090408/a47cbc19/attachment.bin
More information about the Novalug
mailing list