The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > The Lounge > What's on Your Mind?
.
google unix.com



What's on Your Mind? Come inside and relax a while. Maybe play a few Video Arcade Games if you have free time.

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-03-2008
nullwhat nullwhat is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 25
Who are we?

I am curious who we are, how did we come to unix/linux and what/why do we use unix?

1. I am aerospace engineer
2. I am from Seattle WA USA
3. I first came to unix though work
4. I have duel pc/linux sys at home but mostly just remote into my companies system
5. I do unix all day at work, I am not able to do anything with data by hand, I will always script it
6. I love unix because it takes the mystery out of computers


In a world where people still think the “mouse” was a step forward I just want to know who else understands the beauty of the following one liner, do you have a oneliner too?



Code:
   echo prime | awk '{p[++i]=2;for(j=1;++j<100000000;++l)for(n=0;j%p[++n];++k)if((j/p[n])<(p[n])){p[++i]=j;print j;break}}'

N0ll
  #2 (permalink)  
Old 10-04-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,935
Can't say that I have ever seem prime number identification done in an awk oneliner before!
  #3 (permalink)  
Old 10-04-2008
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,555
you can cram a long program into one line too.
  #4 (permalink)  
Old 10-04-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,789
awk has double precision arithmetic operations, so you are limited to DBL_DIG precision - see your /usr/include/limits.h for more information....
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0