Re: There's something about OpenBSD...
[EMAIL PROTECTED] wrote: For instance 'ggrep -r ...' instead of 'grep -r ...' to search recursively with gnu grep (a worthless feature imho). Displaying the name of the file and the matched line nicely like grep -r does is not elegant with find + grep without using a script or a long and inelegant alias - or if it is, I'd be interested in how it can be done in case I need to work on some ancient unix. $ find DIR -type f -print0 | xargs -0 grep PATTERN which, unlike 'find ... -exec' is just as fast as 'grep -r', and unlike 'grep -r', will skip special devices, symlinks, etc. # uname -a SunOS dumbhost.test.se 5.10 Generic_118855-33 i86pc i386 i86pc # find /etc -type f -print0 find: bad option -print0 find: [-H | -L] path-list predicate-list But yes, its probably bad to start one grep per file.
Re: There's something about OpenBSD...
Janne Johansson wrote: [EMAIL PROTECTED] wrote: For instance 'ggrep -r ...' instead of 'grep -r ...' to search recursively with gnu grep (a worthless feature imho). Displaying the name of the file and the matched line nicely like grep -r does is not elegant with find + grep without using a script or a long and inelegant alias - or if it is, I'd be interested in how it can be done in case I need to work on some ancient unix. $ find DIR -type f -print0 | xargs -0 grep PATTERN which, unlike 'find ... -exec' is just as fast as 'grep -r', and unlike 'grep -r', will skip special devices, symlinks, etc. # uname -a SunOS dumbhost.test.se 5.10 Generic_118855-33 i86pc i386 i86pc # find /etc -type f -print0 find: bad option -print0 find: [-H | -L] path-list predicate-list But yes, its probably bad to start one grep per file. $ find /etc -type f -exec printf %s\0 {} \; (if they've got printf, that is :) I'd guess a printf process has less startup overhead than grep. But, uh-oh... Does solaris have xargs -0? :-) /Alexander
Re: There's something about OpenBSD...
On Thu, 21 Feb 2008 21:53:43 +0530 Mayuresh Kathe [EMAIL PROTECTED] wrote: What is it about OpenBSD that I can't resist it? After the past long exchange about our ultimate goal and a lot of people advising me to go over to Solaris 10, I did, I removed OpenBSD from one of my machines and installed Solaris Express Developers Edition. It was slick looking, very graphical with most of things you want to do, had Java SE 5/6 preinstalled, and had everything thing that I was expecting from OpenBSD. But yet, after 2 hours of fooling around, I came back to OpenBSD. For one thing, it took me almost 1.5 hours to install Solaris, compare that to 30 minutes with OpenBSD, including 'packages', 'src' and 'ports'. The second thing was probably the knowledge that things are simple with OpenBSD, none of the complicated layouts thing as with Solaris. You could follow instructions from ancient books like Practical Unix and Internet Security - Second Edition to the T. Given all that, inspite of all the hammering I've taken over my comments, I'd prefer to stick with OpenBSD. Thanks to Theo and the core gang for delivering such a good, clean operating environment. Best, ~Mayuresh Mind your heads fellow hackers. It can cause addiction. -- Henri Salo fgeek at hack.fi +358407705733 GPG ID: 2EA46E4F fp: 14D0 7803 BFF6 EFA0 9998 8C4B 5DFE A106 2EA4 6E4F [demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]
There's something about OpenBSD...
What is it about OpenBSD that I can't resist it? After the past long exchange about our ultimate goal and a lot of people advising me to go over to Solaris 10, I did, I removed OpenBSD from one of my machines and installed Solaris Express Developers Edition. It was slick looking, very graphical with most of things you want to do, had Java SE 5/6 preinstalled, and had everything thing that I was expecting from OpenBSD. But yet, after 2 hours of fooling around, I came back to OpenBSD. For one thing, it took me almost 1.5 hours to install Solaris, compare that to 30 minutes with OpenBSD, including 'packages', 'src' and 'ports'. The second thing was probably the knowledge that things are simple with OpenBSD, none of the complicated layouts thing as with Solaris. You could follow instructions from ancient books like Practical Unix and Internet Security - Second Edition to the T. Given all that, inspite of all the hammering I've taken over my comments, I'd prefer to stick with OpenBSD. Thanks to Theo and the core gang for delivering such a good, clean operating environment. Best, ~Mayuresh
Re: There's something about OpenBSD...
And...you forgot to say: Sorry for my dumbness to all developers that give you an answer. Now, you have to kiss all their ass. Francesco Mayuresh Kathe ha scritto: What is it about OpenBSD that I can't resist it? After the past long exchange about our ultimate goal and a lot of people advising me to go over to Solaris 10, I did, I removed OpenBSD from one of my machines and installed Solaris Express Developers Edition. It was slick looking, very graphical with most of things you want to do, had Java SE 5/6 preinstalled, and had everything thing that I was expecting from OpenBSD. But yet, after 2 hours of fooling around, I came back to OpenBSD. For one thing, it took me almost 1.5 hours to install Solaris, compare that to 30 minutes with OpenBSD, including 'packages', 'src' and 'ports'. The second thing was probably the knowledge that things are simple with OpenBSD, none of the complicated layouts thing as with Solaris. You could follow instructions from ancient books like Practical Unix and Internet Security - Second Edition to the T. Given all that, inspite of all the hammering I've taken over my comments, I'd prefer to stick with OpenBSD. Thanks to Theo and the core gang for delivering such a good, clean operating environment. Best, ~Mayuresh
Re: There's something about OpenBSD...
Sorry for my dumbness, to all developers :) On Thu, Feb 21, 2008 at 10:56 PM, raven [EMAIL PROTECTED] wrote: And...you forgot to say: Sorry for my dumbness to all developers that give you an answer. Now, you have to kiss all their ass. Francesco Mayuresh Kathe ha scritto: What is it about OpenBSD that I can't resist it? After the past long exchange about our ultimate goal and a lot of people advising me to go over to Solaris 10, I did, I removed OpenBSD from one of my machines and installed Solaris Express Developers Edition. It was slick looking, very graphical with most of things you want to do, had Java SE 5/6 preinstalled, and had everything thing that I was expecting from OpenBSD. But yet, after 2 hours of fooling around, I came back to OpenBSD. For one thing, it took me almost 1.5 hours to install Solaris, compare that to 30 minutes with OpenBSD, including 'packages', 'src' and 'ports'. The second thing was probably the knowledge that things are simple with OpenBSD, none of the complicated layouts thing as with Solaris. You could follow instructions from ancient books like Practical Unix and Internet Security - Second Edition to the T. Given all that, inspite of all the hammering I've taken over my comments, I'd prefer to stick with OpenBSD. Thanks to Theo and the core gang for delivering such a good, clean operating environment. Best, ~Mayuresh
Re: There's something about OpenBSD...
* raven [EMAIL PROTECTED] [2008-02-21 18:50]: Now, you have to kiss all their ass. err, I'll pass... -- Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED] BS Web Services, http://bsws.de Full-Service ISP - Secure Hosting, Mail and DNS Services Dedicated Servers, Rootservers, Application Hosting - Hamburg Amsterdam
Re: There's something about OpenBSD...
Mayuresh Kathe wrote: What is it about OpenBSD that I can't resist it? After the past long exchange about our ultimate goal and a lot of people advising me to go over to Solaris 10, I did, I removed OpenBSD from one of my machines and installed Solaris Express Developers Edition. It was slick looking, very graphical with most of things you want to do, had Java SE 5/6 preinstalled, and had everything thing that I was expecting from OpenBSD. But yet, after 2 hours of fooling around, I came back to OpenBSD. For one thing, it took me almost 1.5 hours to install Solaris, compare that to 30 minutes with OpenBSD, including 'packages', 'src' and 'ports'. The second thing was probably the knowledge that things are simple with OpenBSD, none of the complicated layouts thing as with Solaris. You could follow instructions from ancient books like Practical Unix and Internet Security - Second Edition to the T. Given all that, inspite of all the hammering I've taken over my comments, I'd prefer to stick with OpenBSD. Thanks to Theo and the core gang for delivering such a good, clean operating environment. Best, ~Mayuresh yeah, I've been doing some things with Solaris for work, it's stunned me that an OS can take most of DVD...and still be missing what I would call absolute basics that OpenBSD has on an install that fits in half of a CD. I know, deep down, Solaris is a very good OS, and inspires a lot of the work OpenBSD developers do, but man, it's got user interface features that were fixed in MS-DOS and CP/M decades ago, and What The Heck do you put on an entire DVD when it doesn't even have a C compiler or some very basic management tools... I think the conflict you saw is very much the CAUSE of the simplicity and usability of OpenBSD. Community or committee designed OSs are filled with compromise and bloat to keep all parties happy. You can feel it in most systems -- five different ways to do one task, three different applications for the same goal, etc. You can just imagine people sitting around a room arguing over things, and eventually, a compromise is reached, and things get bigger, slower, and more bloated. If a better way of doing something comes up, there is fear of alienating users and developers if the old way is removed, so things get bigger and bigger. OpenBSD is the vision of one person. He's surrounded himself with a bunch of like-minded people, and they produce an OS they way they want it. Is it for everyone? Of course not. Usually, you will know pretty quickly if you agree with the design and philosophy or not. If not, there are plenty of alternatives out there. Funny thing is, I suspect most users of OpenBSD are happier with the results of having that small group of people make decisions about the direction of the project than they would be if the entire community had input on the direction of the project. Yes, every individual person would like it better if THEIR input (and only their input) steered the project, but I suspect few would be happier if EVERYONE'S input was blindly accepted and acted upon. Compromise is an interesting word. It sometimes seems to have widely different definitions -- there's what we are taught when young is the good sense, everyone giving-in a little for the better common good, and of course, the security compromise which is a very bad thing. However, I sometimes wonder about that good sense of the word...how often do we compromise on things we know are just plain wrong, just to avoid conflict or to make progress even when you know the progress is in the wrong direction. I guess you could call OpenBSD a no compromise OS for a number of definitions. :) So, when they say OpenBSD is written by the developers for the developers, my response is, Thank goodness. :) I still love this quote: Some of the people working on OpenBSD are nit-picking, anal-retentive, pedantic, intolerant, fanatical, insistent, demanding and relentless: in other words, the perfect people to be crafting an operating system. (possibly from Rich Kulawiec, but I've not had much luck confirming that... and he's wrong: not some, ALL...) Nick.
Re: There's something about OpenBSD...
On Feb 21, 2008, at 1:40 PM, Nick Holland wrote: Mayuresh Kathe wrote: What is it about OpenBSD that I can't resist it? yeah, I've been doing some things with Solaris for work, it's stunned me that an OS can take most of DVD...and still be missing what I would call absolute basics that OpenBSD has on an install that fits in half of a CD. I know, deep down, Solaris is a very good OS, and inspires a lot of the work OpenBSD developers do, but man, it's got user interface features that were fixed in MS-DOS and CP/M decades ago, and What The Heck do you put on an entire DVD when it doesn't even have a C compiler or some very basic management tools... Sun Microsystems Inc. SunOS 5.10 Generic January 2005 -bash-3.00$ grep -r foo * grep: illegal option -- r Usage: grep -hblcnsviw pattern file . . . Enough said. --- Jason Dixon DixonGroup Consulting http://www.dixongroup.net
Re: There's something about OpenBSD...
On Thu, Feb 21, 2008 at 2:30 PM, Jason Dixon [EMAIL PROTECTED] wrote: On Feb 21, 2008, at 1:40 PM, Nick Holland wrote: Mayuresh Kathe wrote: What is it about OpenBSD that I can't resist it? yeah, I've been doing some things with Solaris for work, it's stunned me that an OS can take most of DVD...and still be missing what I would call absolute basics that OpenBSD has on an install that fits in half of a CD. I know, deep down, Solaris is a very good OS, and inspires a lot of the work OpenBSD developers do, but man, it's got user interface features that were fixed in MS-DOS and CP/M decades ago, and What The Heck do you put on an entire DVD when it doesn't even have a C compiler or some very basic management tools... Sun Microsystems Inc. SunOS 5.10 Generic January 2005 -bash-3.00$ grep -r foo * grep: illegal option -- r Usage: grep -hblcnsviw pattern file . . . Enough said. --- Jason Dixon DixonGroup Consulting http://www.dixongroup.net Did you mean -R?
Re: There's something about OpenBSD...
Jason Dixon wrote: Sun Microsystems Inc. SunOS 5.10 Generic January 2005 -bash-3.00$ grep -r foo * grep: illegal option -- r Usage: grep -hblcnsviw pattern file . . . You are not using the default shell. :-) The ksh implementation that comes with solaris is horrible indeed. # Han
Re: There's something about OpenBSD...
real men use find On Thu, Feb 21, 2008 at 02:30:30PM -0500, Jason Dixon wrote: On Feb 21, 2008, at 1:40 PM, Nick Holland wrote: Mayuresh Kathe wrote: What is it about OpenBSD that I can't resist it? yeah, I've been doing some things with Solaris for work, it's stunned me that an OS can take most of DVD...and still be missing what I would call absolute basics that OpenBSD has on an install that fits in half of a CD. I know, deep down, Solaris is a very good OS, and inspires a lot of the work OpenBSD developers do, but man, it's got user interface features that were fixed in MS-DOS and CP/M decades ago, and What The Heck do you put on an entire DVD when it doesn't even have a C compiler or some very basic management tools... Sun Microsystems Inc. SunOS 5.10 Generic January 2005 -bash-3.00$ grep -r foo * grep: illegal option -- r Usage: grep -hblcnsviw pattern file . . . Enough said. --- Jason Dixon DixonGroup Consulting http://www.dixongroup.net
Re: There's something about OpenBSD...
On Thu, Feb 21, 2008 at 01:40:28PM -0500, Nick Holland wrote: Mayuresh Kathe wrote: What is it about OpenBSD that I can't resist it? After the past long exchange about our ultimate goal and a lot of people advising me to go over to Solaris 10, I did, I removed OpenBSD from one of my machines and installed Solaris Express Developers Edition. It was slick looking, very graphical with most of things you want to do, had Java SE 5/6 preinstalled, and had everything thing that I was expecting from OpenBSD. But yet, after 2 hours of fooling around, I came back to OpenBSD. For one thing, it took me almost 1.5 hours to install Solaris, compare that to 30 minutes with OpenBSD, including 'packages', 'src' and 'ports'. The second thing was probably the knowledge that things are simple with OpenBSD, none of the complicated layouts thing as with Solaris. You could follow instructions from ancient books like Practical Unix and Internet Security - Second Edition to the T. Given all that, inspite of all the hammering I've taken over my comments, I'd prefer to stick with OpenBSD. Thanks to Theo and the core gang for delivering such a good, clean operating environment. Best, ~Mayuresh yeah, I've been doing some things with Solaris for work, it's stunned me that an OS can take most of DVD...and still be missing what I would call absolute basics that OpenBSD has on an install that fits in half of a CD. I know, deep down, Solaris is a very good OS, and inspires a lot of the work OpenBSD developers do, but man, it's got user interface features that were fixed in MS-DOS and CP/M decades ago, and What The Heck do you put on an entire DVD when it doesn't even have a C compiler or some very basic management tools... Solaris does have gcc and all the gnu stuff in the default install, you just have to add /usr/sfw/bin to your path ... and sometimes prefix some commands with 'g'. For instance 'ggrep -r ...' instead of 'grep -r ...' to search recursively with gnu grep (a worthless feature imho).
Re: There's something about OpenBSD...
Marco Peereboom ha scritto: real men use find or locate (1) Francesco
Re: There's something about OpenBSD...
On Thu, Feb 21, 2008 at 11:22:25PM +0200, [EMAIL PROTECTED] wrote: For instance 'ggrep -r ...' instead of 'grep -r ...' to search recursively with gnu grep (a worthless feature imho). Displaying the name of the file and the matched line nicely like grep -r does is not elegant with find + grep without using a script or a long and inelegant alias - or if it is, I'd be interested in how it can be done in case I need to work on some ancient unix. -- Jussi Peltola
Re: There's something about OpenBSD...
On Thu, Feb 21, 2008 at 11:22:25PM +0200, [EMAIL PROTECTED] wrote: Yes quite, its all there but in odd places. Also not that make is in /usr/ccs/bin The thing that put me off sx developer edition is that it requires a whopping 760MB of RAM for install. Solaris 10 and Solaris Express and Indiana and all the other confusing marketting names do not use as much ram thank lord. -- Best Regards Edd http://students.dec.bmth.ac.uk/ebarrett
Re: There's something about OpenBSD...
On Thu, Feb 21, 2008 at 5:08 PM, Jussi Peltola [EMAIL PROTECTED] wrote: Displaying the name of the file and the matched line nicely like grep -r does is not elegant with find + grep without using a script or a long and inelegant alias - or if it is, I'd be interested in how it can be done in case I need to work on some ancient unix. Never used -r so I'm not sure what the output looks like but how about: find . -type f -exec grep something {} /dev/null \; -N
Re: There's something about OpenBSD...
What's wrong with: find . -name *.[ch] -exec grep blah {} \; -print On Feb 21, 2008, at 4:08 PM, Jussi Peltola [EMAIL PROTECTED] wrote: On Thu, Feb 21, 2008 at 11:22:25PM +0200, [EMAIL PROTECTED] wrote: For instance 'ggrep -r ...' instead of 'grep -r ...' to search recursively with gnu grep (a worthless feature imho). Displaying the name of the file and the matched line nicely like grep -r does is not elegant with find + grep without using a script or a long and inelegant alias - or if it is, I'd be interested in how it can be done in case I need to work on some ancient unix. -- Jussi Peltola
Re: There's something about OpenBSD...
On Thu, Feb 21, 2008 at 06:15:32PM -0500, Nick Bender wrote: On Thu, Feb 21, 2008 at 5:08 PM, Jussi Peltola [EMAIL PROTECTED] wrote: Displaying the name of the file and the matched line nicely like grep -r does is not elegant with find + grep without using a script or a long and inelegant alias - or if it is, I'd be interested in how it can be done in case I need to work on some ancient unix. Never used -r so I'm not sure what the output looks like but how about: find . -type f -exec grep something {} /dev/null \; Holy crap people, it was just an example. Believe it or not, I know alternatives to recursive grep on Solaris. -J.
Re: There's something about OpenBSD...
On Fri, Feb 22, 2008 at 12:08:54AM +0200, Jussi Peltola wrote: On Thu, Feb 21, 2008 at 11:22:25PM +0200, [EMAIL PROTECTED] wrote: For instance 'ggrep -r ...' instead of 'grep -r ...' to search recursively with gnu grep (a worthless feature imho). Displaying the name of the file and the matched line nicely like grep -r does is not elegant with find + grep without using a script or a long and inelegant alias - or if it is, I'd be interested in how it can be done in case I need to work on some ancient unix. $ find DIR -type f -print0 | xargs -0 grep PATTERN which, unlike 'find ... -exec' is just as fast as 'grep -r', and unlike 'grep -r', will skip special devices, symlinks, etc.
Re: There's something about OpenBSD...
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jussi Peltola Sent: Friday, 22 February 2008 8:39 AM To: misc@openbsd.org Subject: Re: There's something about OpenBSD... On Thu, Feb 21, 2008 at 11:22:25PM +0200, [EMAIL PROTECTED] wrote: For instance 'ggrep -r ...' instead of 'grep -r ...' to search recursively with gnu grep (a worthless feature imho). Displaying the name of the file and the matched line nicely like grep -r does is not elegant with find + grep without using a script or a long and inelegant alias - or if it is, I'd be interested in how it can be done in case I need to work on some ancient unix. % find / -name '*.txt' -exec grep foo {} /dev/null \;
Re: There's something about OpenBSD...
On Thu, Feb 21, 2008 at 07:26:29PM -0500, Jason Dixon wrote: On Thu, Feb 21, 2008 at 06:15:32PM -0500, Nick Bender wrote: On Thu, Feb 21, 2008 at 5:08 PM, Jussi Peltola [EMAIL PROTECTED] wrote: Never used -r so I'm not sure what the output looks like but how about: find . -type f -exec grep something {} /dev/null \; Holy crap people, it was just an example. Believe it or not, I know alternatives to recursive grep on Solaris. I've heard of something having everything but the kitchen sink, but a Heavenly version of backup software? :) Doug.
Re: There's something about OpenBSD...
On Thu, Feb 21, 2008 at 6:26 PM, Jason Dixon [EMAIL PROTECTED] wrote: On Thu, Feb 21, 2008 at 06:15:32PM -0500, Nick Bender wrote: On Thu, Feb 21, 2008 at 5:08 PM, Jussi Peltola [EMAIL PROTECTED] wrote: Displaying the name of the file and the matched line nicely like grep -r does is not elegant with find + grep without using a script or a long and inelegant alias - or if it is, I'd be interested in how it can be done in case I need to work on some ancient unix. Never used -r so I'm not sure what the output looks like but how about: find . -type f -exec grep something {} /dev/null \; Holy crap people, it was just an example. Believe it or not, I know alternatives to recursive grep on Solaris. Don't know why, but through all these posts the last few days, this one really made me laugh out loud.