| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11
Comments:
<0> You're ***umed to have at least SOME grasp of the basics before you ever come here. <1> !learn FAQ The FAQ is not intended to be a tutorial, or to teach you the basic syntax of bash. <2> OK, bronze <1> !FAQ <2> No matches found at http://wooledge.org/mywiki/BashFaq <1> urk! <3> you broke it now. <1> !forget FAQ <2> OK, bronze <0> !faq 2 <2> http://wooledge.org/mywiki/BashFaq#faq2 -- How can I store the return value of a command in a variable? <0> You can't make it forget an internal command. <1> greycat: wast doing that. <4> i wanna that while that runs one times withouth checking the condiition and then check that and exits if that true <1> *wasn't
<4> but i don'T know that's name <1> "until <0> it's far easier just to set the variable so that it's always true the first time around. <1> do { some actions } until <condition> <4> aaah thx. <0> bronze: wrong language. <1> *Note : syntax not included <0> bash's until is just "while !" <4> yes i know <1> greycat: That wasn't any language. :-) <4> i'm in a howto but there is 80 loops <0> bronze: it was very close to C. <1> ja. <0> MetaMorfoziS: are you trying to validate user input? Or what? <1> but no semi colons and lots of psuedo english <4> yes. <5> I got proctools installed from sourceforge, added a little section to http://wooledge.org/mywiki/ProcessManagement. but I can't get the man pages to install. do man pages have to be generated separately? <0> while true; do echo ....; read whatever; [[ $whatever = .... ]] && break; ....; done <0> That's the simplest thing. <3> it seems abstract terms don't make much sense to people anymore. They always need an example to understand. <0> what the hell's proctools? <5> ;) <4> who asked for example? <5> proctools is the sourceforge package to give us lowly mac os x users the pkill command <1> heh. <4> i was have working the code before you asked "[18:11:48] <0> MetaMorfoziS: are you trying to validate user input? Or what?" <0> MetaMorfoziS: then why are you asking for help? <4> i'm only asked the name of "until" <0> bash does NOT HAVE an "until" command that works like C's. <4> then you executed bronze about the syntax <0> it has an "until" that works like "while !" <0> lhunath: well, it's not very well written, but I doubt anyone's got the urge to redo it (or the Mac OS required to attempt a build...) <6> Since when does C have until? <0> doesn't it have a "do...while" or something? <0> God, it's been WAY too long... <6> You're thinking perl, perhaps <5> lunath: it may be better to start with a poorly written man page than to have none at all :) <0> I'm thinking of that atrocity that bronze posted which just HAPPENS to work like what meta* wanted, which is NOT possible in bash, but for which I already gave alternatives. <7> c++ has a do-while loop <1> greycat: it was a thought ballon only <3> djwonk: I personally find the installation howto of proctools a tad beyond the scope of the process management page. <0> Three of them, as I recall. <5> lunath: should I create a separate page, then? <5> lunath: and save space on the process management page? <0> You shouldn't have to create ANYTHING. It should come with a README and/or an INSTALL file which tells you what to do. <3> djwonk: not my place to tell. But I would have stuck to a link as reference. <3> djwonk: and in case you were wondering why my name isn't autocompleting, it features an h, after the first l. <8> what's the name of the utility that splits one pipe into two?? <9> tee? <8> right, thx al ot <4> i have three until's under each other <4> and only the first runs down, then the script exists <4> exits <10> is there a way to enalbe the alt + . bash shortcut in mac os x? <10> greycat, last comand argument <0> you mean $_ ? <10> greycat, $! I think <10> greycat, anyhow, its a very useful shortcut, brother
<0> $! is the last background job's PID <10> ah right <0> $_ is the last argument of the previously entered command <10> ok <10> well alt . is the shortcut <10> now bow before me <0> sounds like you've got some customized stuff in your inputrc <10> greycat, yes I am THAT Good <10> its standard bash greycat <10> on os x and debian <0> So it's standard Debian and OS X. <10> what do you use? <0> Alt-. isn't even a BYTE, so you can't actually TYPE it on a terminal, which means it cannot be standard bash in any sensible meaning of that phrase. <0> Sorry... care to guess again? <0> So, OK, it's implemented in Debian IF you are in emacs mode. <7> works in cygwin <10> in your face cat <0> Whatever. <10> panda bear <0> By the way, typing "set -o emacs" in a bash window (rxvt) on HP-UX 10.20 does NOT enable your Alt-. key binding. <0> So, I suggest you examine that inputrc file as I mentioned earlier. <10> ooooohhhhh <10> who the hell uses hp ux? <10> i mean what bash version is that? <3> grin. <0> 3.1.17(2)-release <0> HP-UX imadev B.10.20 A 9000/785 2008897791 two-user license <10> you just raised the steaks <0> Obviously I compiled bash myself; it doesn't ship with HP-UX (and certainly wouldn't have been version 3.x back in 1995-ish when 10.20 was released.) <0> Steaks? Is that what we're having for lunch? <10> whatever you want honey <3> betting over lunch meals. <0> I'm still trying to figure out why he thinks I'm holding steaks up in the air. <11> maybe he thought you were a farmer <12> Quick newbie question here: how do I format output from multiple commands nicely? ie: echo "$filename"; cat $filename | wc -l" I'd like that output to all appear on one line <0> echo -n "$filename: " <0> better still: wc -l "$filename" <3> or echo "$filename: $(wc -l "$filename")" <3> !uuoc <12> greycat: thanks, that does the trick. How would I do that with output from programs that *do* always use a newline? <2> Useless Use of Cat (cat foo | grep bar). See <http://www.ruhr.de/home/smallo/award.html>. <10> watch the quotes <0> if you're going to do that, use wc -l < "$filename" to suppress the filename at the end. <0> krang: show me WHAT program you're talking about. <0> and remember that $() chomps off all trailing newlines. <10> show me the money <12> greycat: Ah, perfect, thanks! <10> cocaine is bad for you. You have to see the BASH I coded <11> or the IRC TEXTS you typed <10> panda bear! <10> I missed you more than my bash shortcuts in Os X <10> JACK BAUER IS BACK <13> Not another 24 fan ;_; <10> I hate these glossy screens on the macbooks, with a dark bg I get to see myself <13> Not a pretty site. <13> eh, sight. <14> Kiefer has finally forgiven Julia for cheating with Jason! <10> not at all <14> (Sorry, had a little celebrity attack, there.) <15> greets everyone <15> I have a long file of user data, and I need to print out the column only with email addresses. The problem is that it's not always in the same column.. is there a way to get only the email addresses? <4> how can i copy a link? <0> you want the copy also to be a link? <4> no.. moment i can't speak.. <0> if you want the copy to be a regular old file, just use cp <4> so i ahve a path that is ends in alink if i just cp it, it cp-s the link <4> not the folder <0> oh, it's a symlink to a DIRECTORY? <16> vaccine, just how 'long' is that file? <13> vaccine: You could maybe use a *gasp* regular expression...
Return to
#bash or Go to some related
logs:
mythtv hd160 ardour pkgsrc #python #web psychic-mode gaim udevd slapd debian #lisp What syslog facility does the linux firewall use xgl compbiz snd_pcm_open_conf skype
|
|