IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.26 MB
Powered by
Channel Info
Network: freenodeChannel: #netbsd |
Search in www.irclog.org
Log from #netbsd at freenode 2006-09-01
[00:01]<srrdrrg>vinvin: Why does pkgsrc use gmake?
[00:01]<srrdrrg>Maybe one particular package requires gmake
[00:02]<wygmsjz>pkgsrc doesn't use gmake globally, iirc. only when USE_GMAKE += yes is listed in the Makefile
[00:02]<srrdrrg>exactly
[00:03]<dyfjsg>sjamaan: pypy project is the next big thing re python
[00:03]<dyfjsg>if it lifts of
[00:04]<srrdrrg>python in python?
[00:04]<dyfjsg>yes, but completely diferently
[00:04]<dyfjsg>aim is to produce interpreter that does python faster than C
[00:05]<dyfjsg>its interesting project for someone thats in that stuff ... i am more interested in final product
[00:05]<dyfjsg>how they do it, i dont care :)
[00:05]<srrdrrg>heh
[00:06]<mrvnbsm>same people that gave us the python accelerator, right? i forget what it was called. pyrex or soemthing like that
[00:06]<mrvnbsm>mm, no thats not it
[00:07]<dyfjsg>no, this is diff
[00:07]<srrdrrg>ironpython?
[00:07]<mrvnbsm>psyco
[00:08]<dyfjsg>first they made python interpreted in python ... now that they have interpreter in high level language, they do all sorts of optimizations to the process
[00:08]<vpygg>bootstrap evolution
[00:09]<vpygg>that's nifty
[00:09]<vpygg>recursively repeat until output = input
[00:10]<sgzmnz_lb>hi there, NetBSD addicts
[00:10]<sgzmnz_lb>;-)
[00:10]<sgzmnz_lb>i'm looking for a tool that can display a specified line number from a file
[00:11]<wvzrndn>grep -n
[00:11]<dryvj>hi there, sander
[00:13]<sgzmnz_lb>xtraeme: hm, i don't want to grep for a string
[00:13]<wvzrndn>juan@nocturno][/usr/src/sys/dev/sysmon]> grep -n "" sysmon.c|grep 222
[00:13]<wvzrndn>222: int error;
[00:13]<wvzrndn>works...
[00:14]<sgzmnz_lb>xtraeme: i just want to display whatever line of the file, no matter what it's contents. but only x lines at a time
[00:14]<sgzmnz_lb>this will do the trick: for i in `seq 8 1`; do tail -n $i punten2|head -n 1; done
[00:14]<sgzmnz_lb>(punten2 is the filename)
[00:15]<sgzmnz_lb>but this will display the whole file, of course
[00:15]<sgzmnz_lb>(it's 8 lines in size)
[00:19]<sgzmnz_lb>xtraeme: what does "" tell in grep -n "" ?
[00:19]<srrdrrg>Snader_LB: empty string; anything will match that
[00:20]<vygvyg>I don't know sjamaan that's why the question, but I've got warnings cause of gmake (package sysutil/cdrtools)
[00:20]<vygvyg>but it finally compiled
[00:21]<srrdrrg>it has
[00:21]<srrdrrg>USE_TOOLS+= gmake tbl
[00:21]<vygvyg>ok
[00:21]<vpygg>sed -n '14p' somefile
[00:21]<vygvyg>so that's ok
[00:21]<vygvyg>i guess
[00:22]<sgzmnz_lb>sjamaan: ok, but it's still not what i want
[00:22]<sgzmnz_lb>:-(
[00:23]<sgzmnz_lb>don't tell me there's no tool to just display line x of file y
[00:23]<zjvvyrrm>nite
[00:26]<asjpv>Snader_LB: there must be
[00:26]<rdrxvd>does netbsd run on gumstix boards ?
[00:26]<sgzmnz_lb>jsoft: indeed! /me goes crazy
[00:32]<vygvyg>Snader_LB you can make a little awk script or use head and tail
[00:32]<-- czydygrffc9 xrs f>www.FileRip.com - Download videos off youtube, myspace, google, putfile!")
[00:33]<vygvyg>or a C program, which will be faster
[00:33]<vpygg>Snader_LB: sed -n ${LINEX}p $FILEY
[00:33]<vygvyg>for (i=0; i<x; i++) fgets() that's done
[00:35]<vpygg>or awk 'NR == <linenumber>' $FILEY
[00:35]<vygvyg>yes
[00:36]<sgzmnz_lb>hmm..
[00:37]<sgzmnz_lb>such a simple thing i want to do
[00:37]<sgzmnz_lb>writing an assembly tool would also work, right?
[00:37]<sgzmnz_lb>:-|
[00:38]<wygmsjz>uh
[00:38]<wygmsjz>good lord
[00:38]<wygmsjz>talk about way-overcomplicating things
[00:39]<wygmsjz>echo "5p" | ed -s <file>
[00:39]<wygmsjz>to print line 5
[00:40]<vpygg>snader: you've now seen half a dozen solutions to your problem. pick one.
[00:40]<sgzmnz_lb>tfinn: working on it ;-)
[00:41]<sgzmnz_lb>still, i found it strange if there wouldn't be a tool for it
[00:41]<vpygg>anybody want to write a sendmail ruleset? (:
[00:41]<wygmsjz>that's what ed is all about, btw
[00:41]<wygmsjz>sed can also do it, but I forget the syntax
[00:41]<vpygg>windsor: same as ed: sed -n '222p'
[00:41]<czdj>people still used sendmail?
[00:42]<fud2nzczzvnf>Yes, unfortunately they do.
[00:42]<wygmsjz>tfinn: ah yeah, that's it.
[00:42]<czdj>only terrorists use sendmail
[00:42]<wygmsjz>I just recently converted to postfix
[00:42]<wygmsjz>much nicer
[00:43]<fud2nzczzvnf>You know, the US Government uses sendmail here: mailhub-wh2.whitehouse.gov (TCP port 25, then type HELP)
[00:44]<wygmsjz>sorry tfinn, didn't see your sed example earlier (scrolled out)
[00:45]<wygmsjz>yeah, ed/sed is the preferred way
[00:47]<sgzmnz_lb>thanks for all solutions
[00:47]<wygmsjz>a happy customer is a return customer
[00:47]<wygmsjz>:)
[00:47]<srrdrrg>heh
[00:48]<wygmsjz>I saw that on an episode of COPS once when I was clicking through. a Cop was stuffing an arrestee into the back of a car and told him, "watch your head when getting in"
[00:48]<wygmsjz>then closed the car door, turned to the camera, and said, "a happy customer is a return customer."
[00:49]<srrdrrg>:)
[00:54]<rfrumyj`>sjamaan, done.
[00:54]<srrdrrg>claudio`: thanks!
[00:54]<rfrumyj`>np
[00:54]<srrdrrg>Did you add linux option to fstab?
[00:54]<srrdrrg>Makes it easier for you :)
[00:55]<rfrumyj`>no, but i'd remount /proc
[00:55]<rfrumyj`>ok, added :)







