Prev: Flash click problem
Next: (no subject)
From: Mike McClain on 1 Apr 2010 14:30 On Wed, Mar 31, 2010 at 08:00:18PM +0300, Dotan Cohen wrote: > > That was quite what I asked: where could I read more on the subject? > Dead trees are fine! > Hi Dotan, These are trivial but handy for chasing down where messages come from: etcgrep () { grep -ir "$1" /etc/* ; } sgrep () { grep -ir "$1" /usr/src/linux ; } xgrep () { grep -i "$1" $(echo $PATH | tr ":" " ") ; } HTH, Mike -- Satisfied user of Linux since 1997. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/20100401180553.GA12228(a)playground.mcclains.net
From: Dotan Cohen on 1 Apr 2010 18:50 > etcgrep () { grep -ir "$1" /etc/* ; } > sgrep () { grep -ir "$1" /usr/src/linux ; } > xgrep () { grep -i "$1" $(echo $PATH | tr ":" " ") ; } > Nice. I'm having a hard time understanding that last one, but I will figure it out. Thanks! -- Dotan Cohen http://bido.com http://what-is-what.com -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/k2y880dece01004011545ib070cf4etea171ad499da1283(a)mail.gmail.com
From: Jari Fredriksson on 2 Apr 2010 05:30 On 2.4.2010 1:45, Dotan Cohen wrote: >> etcgrep () { grep -ir "$1" /etc/* ; } >> sgrep () { grep -ir "$1" /usr/src/linux ; } >> xgrep () { grep -i "$1" $(echo $PATH | tr ":" " ") ; } >> > > Nice. I'm having a hard time understanding that last one, but I will > figure it out. Thanks! > > It looks like it takes the PATH environment variable and splits it into multiple tokens (directories), and grep will search in *every* directory included in PATH. -- http://www.iki.fi/jarif/ You will have a long and boring life.
From: Dotan Cohen on 2 Apr 2010 15:10 >>> xgrep () { grep -i "$1" $(echo $PATH | tr ":" " ") ; } >>> >> Nice. I'm having a hard time understanding that last one, but I will >> figure it out. Thanks! >> > It looks like it takes the PATH environment variable and splits it into > multiple tokens (directories), and grep will search in *every* directory > included in PATH. > Without understanding the bash, that is exactly what I had suspected. The $PATH variable and the : character is what gave it away. Thanks! -- Dotan Cohen http://bido.com http://what-is-what.com -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/t2r880dece01004021159gc7fb0336n16daceff6155935b(a)mail.gmail.com
From: Wayne on 4 Apr 2010 19:10
Dotan Cohen wrote: >> Mar 28 09:14:19 sfd kernel: [ Â Â 0.000000] Linux version >> 2.6.31-20-generic (buildd(a)palmer) (gcc version 4.4.1 (Ubuntu >> 4.4.1-4ubuntu8) ) #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010 (Ubuntu >> 2.6.31-20.58-generic) >> >> Doesn't look like Debian to me... >> > > Ubuntu is a Debian derivative, Jordan. I think that the name is an > ancient African word for "Debian for noobies". > Dotan I just came across a page that might help you with the subject. <http://wiki.debian.org/TroubleShooting> I was looking for something else and stumbled across this. HTH Wayne -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/4BB91A27.5020905(a)gmail.com |