| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Comments:
<0> PolarWolf, one second I'm at work hotline <1> I don't like hotline...it ****s! <2> I'm on the first day of my vacation, this had better be important <3> I am trying to delete some files in a directory but get /bin/rm: argument list too long <4> PW: up north already ? <2> Revenger: Yeah <3> what can I do to delete them, if I try to move them I get the same thing <2> Revenger: It's >< this cold <4> that was quick :P <2> Revenger: Aye, get away ASAP and come back as late as possible :) <4> PW: say, is anyone still using the vpn ? :P <2> Revenger: Not that I can tell, but I'm gonna start using it again anyway. ISP data retention stuff and all :P <3> I didn't know there was a limit to the number of files linux commands could handle <2> Use ipsec0 as default gateway <3> how do I get around this <2> I wonder if it's perform
<4> PW: how about openvpn'in it ? :P <2> Revenger: Bah, not you too :) <2> Revenger: There's nothing keeping us from also supporting openvpn... <4> its *so* much nicer than ipsec. <4> true dat <5> quantum: thre's a way to increase the number of FDs per process, but I'm not sure how to do it <5> Juergen: laptop good enough to do Aero Gl***? <6> dammitall. <4> Tamahome_: amd64mobile 3700+ with a gig of ram. <6> I am missing a very important PDF on water storage. <3> Tamahome_, well I guess I need a workaround then...hmmm if I could get it to product a shell script with rm followed by each file name I think that would do it <5> quantum: you could use find. <6> quantum__: you could use some generics. <2> kosmo: Water proof containers, make sure it's not clear plastic <5> quantum: find -name filename.txt -exec rm {} \; <6> PolarWolf: more than that. but, I found the PDF. It was hiding on another machine. <5> Juergen: Acer Ferrari? <2> kosmo: What more is there to report on it? :) <4> Fujitsu Siemens Amilo A1650 <6> PolarWolf: and I should have specified further. Its not just storage, it is water treatment for TEOTWAKI type stuff. <5> ah <7> how can i make partition /dev/hda4 the / partition? <6> Fex-Head: tell it so. <2> kosmo: Oh, ah <5> Fujitsu's are nice... well, the Lifebooks, anyways <7> the graphical installer is incapable of doing so <4> Tamahome_: fast as hell. <7> the graphical installer screws up partition tables <6> Fex-Head: Im getting the feeling you are full of ****. <7> on my hardware at least <2> Hmm, what did I intend to do with this xterm again <4> ATI 64bit chipset. bridges AND graphics. <2> I know I started it for a reason <6> Fex-Head: what distro ? <7> suse <7> it can't partition mac hard drives <6> PolarWolf: rm -rf * ? :) <4> Tamahome_: RadeonExpress200M <7> it says so in the documentation <2> kosmo: No, that wasn't it <3> Tamahome_, yeah find can't handle that many names either like that, but I used find . and piped it thorugh grep to a file, now how do I add rm to each line <5> quantum: how many files are you needing to deal with?!? <6> Fex-Head: sounds like you ahve some reading to do. <8> quantum__, xargs <3> Tamahome_, : looks like about 19000 <5> oh yeah I forgot about xargs <6> quantum__: use generics. rm a* ; rm b* ; rm c* <7> mount /dev/hda4 / <6> jesus h. <7> is that it? <6> dont re-invent the freaking wheel. <3> koshka88, too many files for rm to handle <6> quantum__: bull****. USE GENERICS. <8> kosmo, find /path -type f -print | xargs rm <8> kosmo, hard to get more generic than that. <6> Liandrin: I understand, but hes not listening to you yet. <8> oh, of course, if there's the possibility of spaces in filenames, you'll want -print0 and xargs -0 instead <6> Liandrin: and I dont know that trick, and I will forget it in precisely 5 minutes.
<9> people, you're missing the point <5> Fex-Head: yeah, but you won't be able to mount that as / until you reboot, so you'll need to edit /etc/fstab and tell it to use hda4 instead of what's already there for / <9> whatever you use (wildcards, xargs, etc.), the resulting list of file names is *expanded* on the rm command line <8> kosmo, -print0 separates filenames with NULs instead of spaces <10> Liandrin: more generic?? ind /path -type f -exec rm {} \; :) <9> and the OS has an inherent limit on the size of that command line, so lists above that limit just won't work <8> JackStorm, ah, but that will, if I'm not mistaken, fork a separate rm for each file <8> JackStorm, whereas find | xargs will batch as many filenames as will fit into one rm <9> quantum__: are you trying to delete all files in a directory, or a specific subset of them? <2> -exec will spawn a rm for every result, no? How would that be bothered by the amount arguments on the commandline? <10> Liandrin: true, but I find it's quicker when dealing with over 10million files. <5> maybe the limitation is in the shell? <9> PolarWolf: the -exec trick works of course <8> it wouldn't, but it's needlessly inefficient <2> Of course, but it works <9> PolarWolf: but it just came up in the conversation :^) <6> mod-: I understand... which is why I said targeted generics. A*, etc <5> I dunno, I've never needed to delete 19,000 files before <10> Tamahome_: I had a rm -rf on a directory take 2days to finish once. <9> kosmo: ah, divide and conquer. good idea :^) but possibly tedious <2> So write a quick C program to only unlink() the argument's file :) <6> mod-: potentially. but it is a "simple" solution if you do not have strong shell-fu <2> WOuld beat both rm and xargs <6> mod-: and believe me, my shell-fu is weak. <5> for x$ in [A-Z] ... is that legit shell-fu? <11> Tamahome_: No. Ditch the $ <9> Tamahome_: no <11> And the [A-Z] is kinda nonsense too ;) <5> I haven't done any scripting since I had op.sys. cl*** a year ago <9> anyway, the guy who originally asked doesn't seem to be interested any more, so... <8> JackStorm, on an unloaded box, the find -exec method might seem faster, but it's not if there's any load <9> ah, one last thing i just saw <12> mod-: you naked in the mirror? <5> for x in `ls [A-Z]*` <5> that better? <9> if one uses find2perl with -exec rm, find2perl special-cases it so that it internally calls unlink() instead of executing rm <9> Tamahome_: suffers from the same problem <9> so find2perl should be the best solution in this case <9> kthxbye <11> Tamahome_: You'ld still need to use xargs in conjunction with ls if the amount of files in the directory surp***ed the argument limit. <5> ah <13> hi <14> Tamahome: it'll work if you're looking for filenames that start with A-Z, but only if they have no spaces. <8> Tron, "if the length of the names of the files" <14> and yeah, if there aren't too many for "for" to deal with <14> if they've got spaces, just use for x in [A-Z]*; do something "$x"; done <13> is Aspel comming installed by default with linux? <14> optocus: aspell? Most distributions would install that, or at least have it on their CD or FTP site <13> is it complicated to install on a usual web server configuration? <13> comercial hosting <13> i need to do a PHP spellchecker <14> optocus: depends on the distribution, these days you just run a command like apt-get install aspell (on debian) <13> ok <15> sal zicetimi si mie o versiune de mirc pt linux <14> errors-: in English? <14> if someone else is hosting, ask them to install it, also, they may already have ispell installed again (ispell supports multiple languages) <15> a version of mirc that works on linux <5> you want xchat <14> there isn't one, use a linux irc client like xchat or irssi <4> fortunatly, there is no such thing. <15> RelDrgn where can i get irssi or xchat ???? <5> from your distro vendor <5> unless they're behind the times <15> what is a distro vendor ? <14> errors-: same place you got linux. They're going to be on the CDs or the FTP site. Read your distribution's directions. <15> to much to read , don't have time <15> :D <5> not our problem. <5> we're not here to babysit people, we expect them to read instructions <15> haha <5> cat keeps mewing at me and I'm trying to figure out what he wants... plenty of food and water out for him <16> tama: one of my cats is like that, usually means he's trying to make up his attention quota. <5> exel: ah.
Return to
#linux or Go to some related
logs:
php inlinux #linuxhelp #linux #linux #MissKitten mirrorselect cannot open tty-output venet0 point to point configure dev-c++ +int 10h pam cannot set user id error C3861: 'getline': identifier not found
|
|