[Tfug] >> ?

Claude Rubinson cjr at grundrisse.org
Thu Jan 27 15:13:01 MST 2011


On Thu, Jan 27, 2011 at 03:06:30PM -0700, earljviolet at deserthowler.com wrote:
> When I run pwgen from a terminal I get more than 100 passwords generated. 
> I created an empty file to store the passwords in and used the command
> 
> pwgen >> myfile.txt
> 
> When I check the file I have only one password in it and not the 100+ the
> program must be generating.  Am I misunderstanding the use of >> or is
> something happening with pwgen I am missing?

Read the man page.  pwgen is behaving as designed (though its design
is not intuitive and arguably violates Unix conventions).

Claude




More information about the tfug mailing list