Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

removing a deeply embedded file from a folder??

  • 27-03-2003 4:34pm
    #1
    Closed Accounts Posts: 1,325 ✭✭✭


    hey ppl,

    Im sorry to be posting perhaps a very easily solved question. I just seriously dont have the time to go searching for this one.

    I need to remove a specific hidden file, from within a number of different folders, within the same folder. (hope this is making sense)

    eg.
    folder
    -->folderWithinFolder1
    >specific_file
    -->folderWithinFolder2
    >specific_file

    Has anyone got a script to do this?? Or a simple command or anything??

    Rgrds,
    A.


Comments

  • Registered Users, Registered Users 2 Posts: 1,186 ✭✭✭davej


    find . \( -name filename \) -exec rm {} \;

    davej


  • Closed Accounts Posts: 1,325 ✭✭✭b3t4


    Thanks davej,

    Only problem is that it doesnt work exactly as I would like in MacOSX. I read the man page and all that but Im still at a loss. Even when I sudo -s to root it keeps giving me permission denied messages. Pulling my hair out!!!!! I think the problem lies with it being a hidden .DS_STORE file. Really dont know at this stage. Iv tried putting in "*.html" for the -name and that worked fine.

    Even a simple find . -name "DS_STORE" doesnt find the file.

    Rgrds,
    A.


Advertisement