| |
| |
| |
|
Page: 1 2
Comments:
<0> afternoon, all <1> anyone know why grep -v doesnt let you do -B/-A <1> man page doesnt say you cant do it <1> but it dont work :( <2> you have to sacrifice 2 lambs to the daemon with the highest PID first <1> :( <3> works fine <1> i dont have any lambs <3> printf "foo\nbar\nbaz" | grep -v ba -A 1 <3> prints foo and bar <4> yeah, works fine here, too <1> and thats wrong <4> why? <1> dhartmei; -v inverts, that should print foo and only foo <3> -A 1 <1> ba matches bar
<3> what do you thing -A does? <1> and it should not print bar or baz <1> after <3> you misunderstand -A, obviously <1> -A num Print num lines of trailing context after each match. See also <1> the -B and -C options. <1> no i didnt <1> printf "foo\nbar\nbaz"|grep -A1 foo will print <1> foo and bar <1> if i INVERT the search <1> it should print <1> baz <1> and nothing else <3> the match is foo, the one line trailing context after that match is bar <3> trailing context is not subject to matching <1> -v Selected lines are those not matching any of the specified pat- <1> terns. <3> otherwise -A would be stupid <1> hmm <1> ok here <3> -A/-B comes at the end, after all matching and inversion <1> dhartmei; i want to match a string, and NOT see that string or the line before it <3> that it can't do, afaik <1> would you know a way to do that <1> or do i have to select the bad files into another file, loop through the entire file, and print if it doesnt exist in the bad file list <3> you get grep without -v and with -A, then use the output as patterns (-f) with -v, for instance <1> which just seems a lot of work <1> so exactly what i just said :x <1> thats kinda ghetto <1> so i misinterpreted -v, and really want a 'print-opposite' <1> not 'select opposite' <5> ? <1> ? <5> that's what -v does <1> no it doesnt <1> as i just learned <5> cat log | grep -v fish <1> selects all lines that do NOT match fish <5> that will output every line not containing fish <2> > selects all lines that do NOT match fish <2> haha <1> aia; i want to select all lines that MATCH the string, but print the opposite <1> so i can use -B/-A <1> to NOT print the matching string and the line above it <1> make sense now ? <1> aia; scroll up like 2 minutes, i pasted the man for -v <5> motion: anyway. one of the basic ideas with unix from a long time back, isn't for every command to have millions of functions, but rather to have a set of programs that you can quickly use in the shell and pipe output between them etc.. :) <5> if you want something more complicated than a tool offers, combine it all in a one-liner or a shellscript. <3> if there were a way to negate the regular expression itself, without using -v, that'd work <6> does qmail listen on all inferfaces by default ? <6> just if i telnet to a new ip i can access it... which is actually great... and i won't have to fix it up for that ip too... <1> fungus_; if you tell tcpserver to listen on 0 then yes it does <1> fungus_; its whatever you put in your run file <1> aia; i thought what i was trying to do was pretty easy :-/ <1> i guess simple means 'what you want' when you could've added 1 flag so people can say 'what i DONT want' <1> -v is tricky cause it is 'give me everything that IS NOT this' vs, 'DONT give me this' <1> so how about grep invert a regex ONLY on lines that match regexp <7> or just use perl <1> perl doesnt give me -B/-A unless i undulge eniough to write an ugly *** loop <1> and why doesnt grep -e '^(Index|@@)' work <1> nm thats bad anyway
<1> this blows. svn diff ****s :( <8> you could have coded what you want in ruby or perl by now <8> esp if your file is less than 20 meg or so <9> sup. <2> sup. <9> bored <2> so we do have somethin in common lol. <10> I want to setup to drives to mirror each other, but they are differnet sizes, can I use the left over space on the larger drive for other stuff? Or would this cause the machine to crash if the smaller drive were to fail due to the system trying to write to a no longer responding drive. <10> err would it cause the machine to crash if the *larger* drive were to fail due to the... <11> No, you would just lose whatever's in the left over space on the larger drive. <12> is anyone able to install the mozilla-firefox-1.5.0.4 package? It segfaults here when trying to do env HOME=/tmp LD_LIBRARY_PATH=/usr/local/mozilla-firefox ./regxpcom <13> is there anyone who has dnsmasq installed and willing to do a quick test? <14> hmm <14> ask easy questions you bums <13> :D <15> hey figz <14> hullosir <14> didya see my bug? <15> nope <15> I don't read mailing lists anymore <15> unsubed from even bugtraq and full disclosure <14> it's a *very* striking bug <15> tall, blonde, ***xy? <14> I went so far as to take a picture of it in all its glory.. <14> http://www.oxide.org/greenboy1.jpeg <15> haha, oh wait. not <14> you don't think that's an impressive bug? <15> I can top that easily though =) <15> wanna guess? <14> oh well by all means <15> I;m getting married at the end of the year <14> yow <15> hahaha <14> here I thought you were just going to paste some old volkswagen <15> www.seifried-taylor.ca <14> what's with this geeky marriage domains all of a sudden <14> :P <15> well I;m changing my last name <15> so seifried.org won't do <14> double yowza <14> like there's not enough taylors around for heaven's sakes <15> we're both adopting seifried-taylor. good stuff <15> yeah but we'll have two last names. very cool <14> hmm <15> so yeah that's m major news =) <14> normally on a hyphenated the husband's name follows, iirc.. which makes me giddy at the prospect of confusing some latterday genealogist <15> yeah but seifried-taylor sounds better than taylor-seifried <14> how about tayreid? <15> no thakns <15> but <15> actually <15> I'm in calgary for a wedding <15> they combined both names, rearranged the letters <15> for a totally new name <14> are they both cryptic crossword solvers? <15> I wonder <16> I've installed gaim but when I try connecting with my MSN account it gives "SSL support is needed for MSN. Please install a supported SSL library. <snip>" But I have installed nss and specified to use it when I compiled gaim. (I'm using freebsd but am instantly banned whenever I join #freebsd, I think my ISP is blocked since I have done nothing wrong there) <16> can anyone help? (I've tried googling but found nothing helpful) <16> I compiled gaim from the ports collection <16> oh, and I can connect with my AIM account fine. Also, jabber doesn't work either. <8> try #freebsdhelp <16> join #freebsdhelp <16> agh, sorry. thanks NicM. typo. <8> a / is traditional ;-) <17> hi, how do i configure my openbsd box to route between two network interfaces please? <18> Jabl0: http://www.openbsd.org/faq/faq6.html <18> Jabl0: Followed by http://www.openbsd.org/faq/pf/index.html <17> thanks <18> That should give you an excellent idea about which configuration files and man-pages contain the necessary info. <18> Basically, there are several ways of doing it, and you need to find the one that's ideal for you. <17> ill try that thks <19> s there a radio plugin for xmms, or other program that provides streaming music a la iTunes Radio feature?
Return to
#openbsd or Go to some related
logs:
#beginner cum in her drink
#beginner #politics irc surver warsawa #windows sketchup dodge neon #mirc turkeytr #politics
|
|