''Add your own!'' '''Mar 19 17:45:37''' {{{ i have a variable $foo, how can i add a space every 80 characters? it's designed for this stuff * Touns has quit (Read error: 104 (Connection reset by peer)) Trying to parse HTML with a shell script is like trying to open a can of corn with a spoon. (with string ops) ben9: loop + parameter expansion awk would get it done quickly. so would sed. *nods* So would perl. :/ * {xmb} has quit (Read error: 60 (Operation timed out)) perl is a little chunky for something that simple granted. :) i'll go with sed/awk as looping would look ugly for a small task like that * Touns (n=plop@lns-bzn-45-82-65-136-100.adsl.proxad.net) has joined #bash sed 's/\(................................................................................\)/\1 /g' haha. can't i use the mutiplier operator? oh sheesh, who the hell taught him that whatever iti s { } thing * zinosat (n=Davide@82.56.91.21) has joined #bash ben9: yes. Pssssht. Kids. But the above is funnier :) uniplex: i think he was taunting me goldfish: how does that work? ben9 google interval expressions, maybe you find what you want to know if mine's so "funny", how come I don't see the rest of you offering answers? hmm?> Oh right, it was serious. is it because you're all spending 30 minutes trying to look up obscure syntactic shit instead of just pasting 80 dots and KNOWING it'll work? lol only a fucking idiot is gona make 80 dots "OMG it has 80 dots in it that's so old skul i got a better 1 lol" }}} '''Mar 21 14:15:31''' {{{ how can i check with if that this $dir is not empty array=(*) !faq empty http://wooledge.org/mywiki/bashfaq#faq4 -- how can i check whether a directory is empty or not? i want to check variable not directory * likewhoa has quit (read error: 110 (connection timed out)) help test something with -eq =0 and don't come bitching at us later when you find out you're doing it all wrong. we did tell you. i bet he also continues using foo=`ls` i bet he even tries to iterate over the files inside the $foo string. i bet he didn't even understand my array=(*) answer to the first aborted attempted at a question. }}}