nice, all great answers<br>i appreciate it. <br><br><br><div class="gmail_quote">On Thu, Aug 11, 2011 at 2:18 AM, Jordon Bedwell <span dir="ltr"><<a href="mailto:jordon@envygeeks.com" target="_blank">jordon@envygeeks.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Wed, August 10, 2011 10:18 pm, nathan nolast wrote:<br>
> can someone please inform me how this works<br>
>> filename.txt<br>
> this emptys the file but i cant find what > is doing, what is ><br>
<br>
</div>It's called stdio redirection or some (well actually a lot of) people just<br>
call it I/O redirection.  You can redirect stdin and you can redirect.  <<<br>
< stdin stdout > >>, the proper way to truncate a file is actually "><br>
file.txt" or ":> file.txt" and nothing more, no echo, with an echo of any<br>
kind you always end up with at least 1 byte written to the file which<br>
defeats the purpose of what you are trying to do if you want to down and<br>
dirty about it.<br>
<br>
<a href="http://tldp.org/LDP/abs/html/io-redirection.html" target="_blank">http://tldp.org/LDP/abs/html/io-redirection.html</a><br>
<div><div></div><div><br>
<br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thank you for your time<br>~Nathan<br><a href="mailto:nathan1465@gmail.com" target="_blank">nathan1465@gmail.com</a><br><br><b><span style="color:rgb(51, 204, 0)">Please consider the environment before printing this email. </span></b><br>

<br>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. <br><br>