@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6



Comments:

<0> Namely just wanting to list some fils out then build links around them.
<1> sh-what? ...
<0> r00t|viao: shtml is ssi. I just figured out a workaround. I dumped the code I was trying to embed in the <!--#exec cmd="code here"--> to an external file and I just call is from the embedd. Thx
<1> normal people use php...
<2> HAHAHA
<3> hi
<4> hi
<4> 'morning
<3> :)
<3> evening for me ;)
<3> i'm trying to manage some pipes and it's driving me crazy
<5> pipes can be that way.
<6> hi, I have a counter inside a while loop, and I want to echo the value of that counter outside of the while loop once it is done
<5> !faq disappear
<7> http://wooledge.org/mywiki/BashFaq#faq24 -- I set variables in a loop. Why do they suddenly disappear after the loop terminates?



<8> twkm: 24. I set variables in a loop. Why do they suddenly disappear after the loop terminates?
<8> twkm: http://shelldorado.dyndns.org/wiki/index.php/BashFaq#faq24
<6> legend thanks
<6> hi again - I see I can delete a character with echo \b
<6> is there a way to delete all characters on the line?
<4> \b is backspace
<6> so do I echo ^u
<5> it doesn't really delete the character.
<5> but, you might want \r
<6> ah ok - but it is overwritten when I write my new character
<5> yes, same with \r
<5> neither \b or \r usually remove the characters, but you can then overwrite what is there.
<6> hmmn.. the \r didn;t work
<6> just printed a \r
<6> Processing mailings (-) \rProcessed 32 mailings in 132 seconds
<5> you must do the same thing for \r that you did for \b.
<6> ah -en
<6> I will have to look in to that
<6> thanks :)
<6> ah
<6> echo -e "\rMy message"
<9> <9> any idea how to define a variable within a variable in shell script?
<9> a=`ls -1 /dir/ | sed -n '$b(p)'
<9> `
<6> this bash scripting is far too much fun. I think I might need to ditch php and start doing everything in bash ;)
<5> tomcatf14: you cannot. consider an arry instead. otherwise you may want indirection.
<6> thanks again.
<5> err, an array.
<10> basic612: What are you writint scripts for?
<6> ok one other question. I have my script stepping through 32 items to process with a call to a php script, is there a way for me to get them processed in batches, ie split the 32 up into batches of 5 or less and process each batch concurrently.
<6> ChrisPartridge: scheduled maintenance on a database using php scripts
<9> http://pastebin.ca/77636
<9> how do i solve this?
<5> basic612: perhaps xargs.
<9> ok, basically i want to compress the folders in the dir base on the filename
<9> i want it to be automated
<5> tomcatf14: don't ues ' quotes, and learn bash.
<5> tomcatf14: i.e., ${b} not $(b)
<5> i.e., a=$(ls /dir/ | sed -n ${b}p)
<9> ok, it work..thanks
<9> *learning bash* now
<9> how much diff is shell script and bash?
<5> what is "shell script"?
<5> bash is a shell. any script you write for it is, thus, a shell script.
<9> if i start the script with #!/bin/sh and #!/bin/bash
<9> what's the diff?
<11> the started interpreter?
<5> tomcatf14: /bin/sh may not be bash, and even if it is bash acts differently.
<5> see the invocation section of the manual.
<6> twkm: xargs -n1 -P5
<6> working like a charm
<6> thanks for the push in the right direction (again)
<5> sure thing.
<12> i have vi +~"~
<5> looks dangerous, and unbalanced.
<11> *shiver*
<12> i have vi +0"0'0\0"0" the 0 are just separators so the " and ' can be seen clearly
<9> For this http://pastebin.ca/77636
<9> How do i loop b+1 until the end of file
<9> *until the end of directory listing
<12> it works but when i try to make an alias of this i get a > which means unbalanced quote



<5> tomcatf14: don't.
<5> tomcatf14: for f in /dir/*; do ...
<12> i have alias v=" vi +0"0'0\0"0" "
<5> tulely: it *is* unbalanced.
<12> could you please show me where?
<5> tulely: i count three "'s.
<5> tulely: in your alias you try to embed " quotes within your " quotes -- bash cannot read your mind, you'll need to do more.
<12> only two the middle one is \"
<5> eh?
<5> oh, you put 0's in so it would look stupid.
<12> i couldn't find another character
<9> twkm, not very sure how to write the scriot
<11> btw - maybe i missed the point - but what's the purpose of that alias?
<5> tulely: how about you don't use anything special, just type (or better, paste) what you actually do.
<12> vi + " ' \ " " file does ' " in vi which goes to file mark
<13> yeah!
<5> tomcatf14: no? weird. every tutorial i've ever seen shows how to write a simple file expansion loop.
<5> tulely: spaces don't help, now i cannot tell what is actually adjacent and what is you ****ting about.
<12> there are no spaces between the + and last "
<5> tulely: anyway, you have the same issue surrounding the creation of your alias as you have in direct usage.
<12> vi +"'\"" file
<11> aaah. it's readable
<13> only one ' ?
<12> in my alias file i just put " alias v="vim file"
<12> yes only 1 ' after the first "
<13> don't the ' have to be balanced also?
<11> yep
<12> i guess not because it works
<11> or quotes. depends on the need
<5> or at least quoted.
<13> how wierd
<5> alias v='vi +"'\''\""'
<12> wow it works
<12> could you explain to me what it really means - i can't see it
<12> 1. you replaced my " with ' the outside quotes for the alias
<12> then \' my ' and then put ' around it
<5> i used more quotes.
<11> heh
<12> am i right
<14> does anyone happen to know a way to modify the clipboard or select buffer ?
<13> TiCPU: wouldn't that take a separate notepad app?
<5> apropos cannot find anything?
<14> oh, I did not even know about that one :-// thanks
<14> xclipboard :)
<14> sdjf: nop, I just want to make a sshortcut to put a screenshot in my public_html directory and put a link in clipboard
<13> TiCPU: uh, okay...that's above my head. all I've got is a embedix pda
<14> didn't help I just updated to XOrg 7 which didn't include xclipboard by default on my distro, Gentoo
<5> gentoo ****s?
<14> depends when and what
<14> nop, too bad, xclipboard only provides a GUI, same for 'xcutsel' which was in the same package
<14> maybe I'll just have to write one to do the job based on xclipboard
<15> hey what about bookmarking in bash?
<14> what would you call bookmarking?
<15> something like user@host ~$ bm /usr/bin ubin
<15> so that $ cd {ubin} would take you to /usr/bin
<15> I have tried writting a shell function for that with ams.
<5> feel free to write something.
<5> of course you'll need to source the script that changes there.
<5> have bm be a function that changes CDPATH.
<14> just like /bin/cd can't do anything ;P
<15> twkm: source the script? I did not get you?
<14> debarshi: source somescript.sh or . ./somescript.sh so it affects current vars
<14> else it will only modify its new environment and leave the current path as-is
<15> writing it in .bashrc is good enough IMHO... we do not need to change CDPATH
<14> CDPATH is the var which contains the current active path
<14> ehmm if I remember correctly it was PWD
<14> so PWD="/" == cd /
<12> thank you twkm -
<15> TiCPU: thats correct... it is pwd
<15> but how is that related to bash bookmarking?
<3> is: ls & leggit ?
<3> will it fork the process in bash ?
<14> debarshi: you could override 'cd' to source a script of your own which parse the cd line and if it starts and end by {} it would modify PWD to the path accordingly
<14> and the script would check for bookmarks in a bookmark file


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #bash
or
Go to some related logs:

Python Concatenate List to String
run-program udev_run_devd
atal error: Maximum execution time php
#ubuntu
drw-rws---
reactions to neosporine
+hula +fedora +x86_64
hyperWRT what is spanning tree protocol
shevegas
gtk theme translucency composite



Home  |  disclaimer  |  contact  |  submit quotes