Search Results

Search: Posts Made By: Dean Rotherham
2,281
Posted By Dean Rotherham
Ok, so now I'm really concerned .. this worked?...
Ok, so now I'm really concerned .. this worked? It finds the "test" file WITHOUT the quotes? But why when I'm using the $DELETE file with a list of files to delete it didn't work ... could the fact...
2,281
Posted By Dean Rotherham
Brilliant .. that now worked ... hummm, not sure...
Brilliant .. that now worked ... hummm, not sure why I was battling then. The -type must be the answer :) and not -d ... Thanks again.

Regarding the other post, yip it works with the "{}" and NOT...
2,281
Posted By Dean Rotherham
Using find -d and copying to the found directories
Hi again All :)

After posting my first thread just a few eeks ago and having such a great response (Thank You once again :) ), I thought I'd perhaps ask the experts again. In short I'm trying to...
32,615
Posted By Dean Rotherham
Heyo guys, I thought I'd just confirm my OS,...
Heyo guys,

I thought I'd just confirm my OS, nothing abnormal and if anything probably one of the most common OS, I'm on ubuntu. (So guess Debian) ... I will confirm though that without the quotes...
32,615
Posted By Dean Rotherham
Great ... I'll include those details next time...
Great ... I'll include those details next time first, sorry .. just getting the hang of posting as such .. First Linux post ;) ... But great I guess this thread an be closed. Must I do that or will...
32,615
Posted By Dean Rotherham
YOU GUYS ROCK!!! :) .. Thank You! Much...
YOU GUYS ROCK!!! :) .. Thank You! Much appreciated ... so the answer was the fact that the curly brackets needed quotes .. "{}" .. I now have a working script.

Again Linux and even more so, "Linux...
32,615
Posted By Dean Rotherham
Heyo Methyl, Thank You .. Brilliant :) ......
Heyo Methyl,

Thank You .. Brilliant :) ... I'll give this a try and see how it goes .. Really appreciate the help :)

Dean
32,615
Posted By Dean Rotherham
Hi Shababc, Yip, there is a semi colon there...
Hi Shababc,

Yip, there is a semi colon there (;) should that not be the case? The exact code is:

if [ -f $DELETE ] ;then
cat $DELETE | while read file; do find $HOME -name "$file" -exec rm -f...
32,615
Posted By Dean Rotherham
Hi Jlliagre, Thanks for your reply, as I...
Hi Jlliagre,

Thanks for your reply, as I say, to me it should also work 100%, but it's not :( .. I'm not sure if perhaps it's based on the rest of the script below happening before the deletes...
32,615
Posted By Dean Rotherham
Using "find" and "-exec rm" ... Just no luck :(
Hi All,

Ok, so I'm fairly new to Unix, but would like to think I'm grasping things fairly ok (Well until now ;) ), BUT with this one I'm going in circles ... LOL .. really can't work out why? So...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 06:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy