cat pipe. Was: Sony audio (MSV), and LAME is lame

Bill McGonigle bill at bfccomputing.com
Thu Oct 4 14:16:02 EDT 2007


On Oct 4, 2007, at 10:08, Steven W. Orr wrote:

> cat file | lame
>
> when they can just say
>
> lame < file

It's useful when you're doing things as different users, ala sudo:

   sudo cat /var/log/maillog | grep -i syslang

so it's an easy habit to get into.  There's no reason to run grep as  
root in that example.  grep might be [read: is] buggy.

It's also conceptually very straightforward.  And as Tom wrote, it's  
usually there from the start of the exploration process.

> No seperate process, no pipe, less load on the computer, less  
> setup, less
> entropy, the universe lasts longer, the needless destruction of  
> electrons
> is averted...

And if you wrote the thing in assembly instead of a shell script it'd  
be even more efficient!  Seriously, for most tasks there'd be no  
noticeable difference.  If you want to be efficient, dump your  
regular OS and compile gentoo with good kernel options for your  
specific CPU.  I got about a 40% boost on performance of a system by  
doing that.

-Bill

-----
Bill McGonigle, Owner           Work: 603.448.4440
BFC Computing, LLC              Home: 603.448.1668
bill at bfccomputing.com           Cell: 603.252.2606
http://www.bfccomputing.com/    Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf




More information about the gnhlug-discuss mailing list