Command help
nathan nolast
nathan1465 at gmail.com
Thu Aug 11 14:53:59 UTC 2011
nice, all great answers
i appreciate it.
On Thu, Aug 11, 2011 at 2:18 AM, Jordon Bedwell <jordon at envygeeks.com>wrote:
> On Wed, August 10, 2011 10:18 pm, nathan nolast wrote:
> > can someone please inform me how this works
> >> filename.txt
> > this emptys the file but i cant find what > is doing, what is >
>
> It's called stdio redirection or some (well actually a lot of) people just
> call it I/O redirection. You can redirect stdin and you can redirect. <<
> < stdin stdout > >>, the proper way to truncate a file is actually ">
> file.txt" or ":> file.txt" and nothing more, no echo, with an echo of any
> kind you always end up with at least 1 byte written to the file which
> defeats the purpose of what you are trying to do if you want to down and
> dirty about it.
>
> http://tldp.org/LDP/abs/html/io-redirection.html
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
Thank you for your time
~Nathan
nathan1465 at gmail.com
*Please consider the environment before printing this email. *
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110811/55202635/attachment.html>
More information about the ubuntu-users
mailing list