@# Quotes DB     useful, funny, interesting





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



Comments:

<0> yeh
<1> well nerdx
<0> stupid mother ****erts...
<0> *****ers
<2> that box hasn't ever been hacked in 5 years.
<1> no one has axx too my laptop and i got 0byte sys logs, firewalled only allow axx from this ip and that linux box is fine i just check logs got em since the new install
<2> the only problems i've had is some users getting some ddos but other than that, nothing.
<3> lo all
<3> sup?
<4> ah hah!!!
<4> i have some files i need to copy... all ending in cpp
<3> heh
<4> the directories they are in contain whitespace and dashes
<2> just figures.. during the two busiest weeks of my life, someone takes advantage.. hehe.
<3> magikman: ok?



<4> how do i ignore them
<3> magikman: " " ?
<4> i need to use find and cp
<5> find ...... -cmd 'cmd' ';'
<4> find . -name "*.cpp" -exec cp {} ./Programs
<3> two seconds.. need to stop this dvd
<5> {} = found filename
<5> dont forget the ';' at the end
<4> indeed
<4> doesn't work
<3> magikman: "{}" ?
<4> i have used every combination i know
<5> {} = filename in question
<3> not a ; .. but a \;
<4> indeed
<5> magikman: put ';' at the very end
<5> yes
<3> bolrod: its a \;
<4> find . -type f -name "*.cpp" | xargs -t cp {} /FTP/Private/Programs/ \;
<4> i have done that
<5> znx: its exactly the same
<3> magikman: use null
<1> ahhhhh pirates
<3> find . -type f -name "*.cpp" -print0 | xargs -t0 cp {} /FTP/Private/Programs/ \;
<5> find . -name "*.cpp" -exec cp {} ./Programs/ ";"
<5> should work
<3> bolrod: not with spaces
<3> nor with unusual charsets
<3> ALSO
<3> that method calls cp for every file
<5> what?
<3> xargs does it with batches
<3> :O
<6> arrgh my back! now i only have 21 left
<3> heh
<0> can't you just do "cp `find -name *.cpp` newDir/" ?
<5> then put the {} in quotes
<4> http://paste.linux-noob.com/index.php?query=1118
<0> hmm, no..... :P
<5> like "{}"
<4> gives me that error
<3> Cippo: nope
<5> it should work perfectly
<4> it doesn't
<4> please
<4> don't everyone tell me something to do
<5> it has never failed for me
<5> so
<5> please
<4> znx, that doesn't work
<4> jesus
<0> why not use a loop?
<5> omg
<1> why use a loop if you dont have too?
<0> because it looks way better! :)
<3> magikman: hrmm
<3> find . -name '*.cpp' -type f -print0 | xargs -n1 -0 cp {} /path/to
<3> n1 !
<3> heh
<3> forgot :P



<6> ^_^
<5> find ./ *cpp -exec 'cp {} /Programs' ";" << try that
<4> tried that too :)
<3> bolrod: that doesnt work either
<5> and what is the error?
<3> like i said.. files with spaces screw it
<4> usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
<4> cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ... target_directory
<3> magikman: still?
<4> it errors like that with every file
<4> indeed
<4> i have been about to pull my hair out
<5> omg
<4> i have tried all these
<4> ...
<5> copy what I pasted
<5> it worked for me just now
<0> magikman: are yuo gonna copy the dirs too, or just all the files into the same dir?
<4> just the files
<4> bolrod, it will not work.
<0> well, then cp `find -name "*.cpp"` newdir should do
<4> i KNOW this
<5> try it
<5> I KNOW it will
<4> doesn't workl
<4> work
<4> i tried it!!!!!!!!!!!!!!
<5> have you tried?
<4> yes
<5> damn
<4> goddamn
<5> what are you on?
<5> linux?
<4> umoms
<5> O_o?
<4> bsd
<5> kick it
<4> it is bash just like your linux box
<5> well
<5> not realy
<4> for the most part, yes.
<5> sometimes it doesn't like certain syntaxes
<3> magikman: -i
<3> to the xargs
<4> tried that too
<4> lol
<3> find . -name '*.cpp' -type f -print0 | xargs -n1 -i -0 cp {} /path/to
<3> like that
<3> magikman: -i is for it to replace the {} hehe.. hence it wasnt working ;)
<6> Deary me.
<4> i don't have that option. one of the differences between linux and bsd. :p
<3> magikman: ugh.. man xargs look for replace-str
<5> for i in *.cpp;do cp $i /Programs
<3> magikman: try the long option --replace
<5> ?
<3> bolrod: that would match pwd only
<5> ?
<3> ie not */*.cpp
<5> yes..
<5> true
<4> i give up... screw it
<4> haha
<3> also it wouldnt work either bolrod
<5> ok
<3> find splits at spaces
<3> you would need IFS="\t"
<5> so you have a directory with files WITH spaces?
<3> magikman: look in the man page for it.. must have it?
<3> bolrod: files/dirs
<5> and you want to move them to a certain terectory?
<5> directyory
<5> so you want to move the dirs?


Name:

Comments:

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






Return to #linux-noob
or
Go to some related logs:

#beginner
www.foreverdayphotos
#computers
#linuxhelp
you dirty rat you killed my brother quote
#linux-noob
evil kenivel grand canyon
#ubuntu
#allnitecafe EFnet nannette
td/tool



Home  |  disclaimer  |  contact  |  submit quotes