@# 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> heh.
<1> :(
<1> i cannot give up now, although i would have been faster manually
<2> that \r looks malplaced
<1> where?
<1> yes
<1> it alters the url and it cannot be found
<1> perhaps it is
<1> ah the \r contains to the line grep fetches
<1> how can i get rid of id?
<1> it
<3> tr -d '\r'
<1> why does it say: Failed to open rtsp://a337.v78707.c7870.g.vr.akamaistream.net/ondemand/7/337/7870/v0001/mitstorage.download.akamai.com/7870/18/18.06/videolectures/strang-1806-lec01-26aug1999-220..rm
<1> the end of the file is 220k.rm not 220..rm
<1> i could not get rid of that \r with tr -d '\r'
<1> can you help me again?



<0> well, failed to open is because, i presume, due to the ..rm which doesn't actually match what the server has.
<1> and whats with the \r?
<0> crappy html client?
<1> it was in fact the \r
<1> now it works
<1> \r\n file format ****ing ****
<1> thx for all your help!
<0> why do you have a \r\n formatted file?
<4> twkm: it came from the MIT-webserver
<0> then it was a crappy html client. not really surprising.
<5> hi #bash
<5> erm, am I going crazy, or can tr only be given one pattern to change, for eg. If I want to lowercase and replace all spaces with underscore, do I need to double pipe the text to tr, I just dont seem to be able to give it two patterns, only one at a time
<6> right
<5> ah jeje
<5> ok thanks trash
<7> how do i set a global variable in bash?
<6> they are global by default.
<7> thanks
<7> also, curl -d "foo=$FOO" -d "bar=$BAR"
<7> why isnt the second variable getting p***ed
<6> I would quote the variable, not the string.
<7> ok
<6> I don't know how curl works.
<6> perhaps it just notices the first -d.
<7> the man page says i can load as many a si need
<6> curl has a #curl channel here, btw.
<5> anyone know what channel would cover support for wget? I've got a weird problem with it, and Novell's download section for SLES10 ISO's
<7> thanks trash,
<7> what's the easiest way to url encode some data?
<8> by using an appropriate language
<6> by using an already existing script.
<7> how would i strip " quotes from a string?
<8> help tr
<6> _sho_: since when is tr a builtin?
<9> lol!
<8> its not?
<9> no
<9> it's not.
<9> trash: _sho_ ignored me :P
<9> so he can't hear me!!!
<6> _sho_: type is your friend
<9> trash: or which
<9> trash: tell _sho_ that too
<9> :P
<6> VIm_Enforcer: type makes more sense since it is a shell builtin.
<9> trash: true :)
<9> but still
<6> VIm_Enforcer: which won't tell you if the program is a shell builtin/keyword or anything else.
<9> trash: it tell nothing if it isn't :)
<9> but have it your way
<9> btw thanks for the type builtin, i forgot about it
<9> :P
<6> what seems to be a stupid indicator for me.
<7> how do i include another script in mine?
<9> lastnode: how-include?
<9> explain.
<9> like, in modular fashion?
<7> i want to use the functionality of this script - http://www.shelldorado.com/scripts/cmds/urlencode.txt
<9> well
<9> you can make it a function inside your script



<9> or just copy it
<7> ok because im doing this
<7> VAR1="$FOO $BAR"
<7> and them p***ing $VAR1 via POST
<7> for some rason, $BAR doesnt get p***ed
<9> of course
<9> var1="$foo" "$bar"
<9> try that
<7> VIm_Enforcer, but the same var prints fine to a text file
<9> hmmm
<9> just try and do it in bash,
<9> VAR1="$FOO $BAR"
<9> doesn't work
<9> neither does mine :)
<7> but VAR1="$FOO $BAR"
<6> you talking bull****, VIm_Enforcer.
<9> trash: i realized :P
<7> echo -e "$VAR1" >> var.log works fine
<6> s/you/& are/
<7> it outputs both variables to the log
<9> um
<9> -e just enables escapes
<9> escape sequences*
<9> \n, \a etc.
<7> well that's the only thing im doing different
<7> :o
<7> trash, got any idea?
<10> sorry for a question which is not relevant to bash but to C, but i have a problem, i use linux debian gcc-4.0, when i use either scanf o getchar i have the problem that somehow a linefeed is preserved in memory, i.e. if i use one of the two functions in a loop, the second time i use it the answer is taken automatically as a line feed (ascii 10) is there a faq (because 'm sure it's a faq) where i can find a solution?
<8> in ##c?
<8> and i dont htink gcc4 is considered stable yet
<10> _sho_: thanks
<10> _sho_: ok, i'll try using gcc-3.*
<9> TheBonsai!
<3> y0
<11> hi
<9> hey sohalt
<12> Turms: That is compiler independent
<12> that behaviour depends on libc (glibc)
<12> and, that is completely normal
<10> ml2: thanks
<12> scanf just leaves trailing whitespace in stdin-buffer
<10> ah ok
<12> btw. it's best to not mix scanf and gets/getchar
<10> ml2: ok, i'll do it
<12> how do I check for an empty directory?
<12> [[ $(ls -A . | wc -w) = 0 ]]
<6> !faq empty
<13> http://wooledge.org/mywiki/BashFaq#faq4 -- How can I check whether a directory is empty or not?
<14> trash: 4. How can I check whether a directory is empty or not?
<14> trash: http://shelldorado.dyndns.org/wiki/index.php/BashFaq#faq4
<12> thanks
<12> what about pitfalls?
<6> ?
<12> bash pitfalls
<12> for i in `ls *`
<6> yes... what's your actual question?
<12> I'm asking for the trigger
<6> !pitfalls
<13> http://wooledge.org/mywiki/BashPitfalls
<12> Thanks
<15> hey
<16> hola.
<15> so far i have df -h | awk '/backup/{print $5}'
<15> that gives me a number followed by %
<15> how can i strip the %
<16> alrighty.
<16> df -h | awk '/backup/{print $5}' | sed 's/%//'
<15> awesome, thank you.
<16> a=$(df -h | awk '/backup/{print $5}'); echo "${a//%}"
<16> few ways to do it.
<15> now the daddy lemming will get an email every hour when the backup drive reaches 80% usage
<16> :)
<16> Spook: df -h | awk '/backup/{ gsub("%","",$5); print $5}'


Name:

Comments:

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






Return to #bash
or
Go to some related logs:

#qemu
authdaemond: stopping authdaemond children
#osdev
perl ssh attach
motv FC5
#php
ImportError: No module named rdiff_backup.Main
configure: error: OpenSSL was not found. Please supply a pathname to OpenSSL
xorgcf-28
simscan: fatal error executing clamdscan



Home  |  disclaimer  |  contact  |  submit quotes