[colug-432] help with a command

Chris Embree cembree at ez-as.net
Sun Aug 10 22:16:14 EDT 2014


I guess I misread your requirements.   I think Pat had the right
solution for deleting dirs.

The only difference might be addring -rf...

find /dir/to/serach -type d -name "*.PA" -exec rm -rf {} \;

Untested.  But seems the right direction.


On 8/10/14, Stephen Potter <spp at unixsa.net> wrote:
> On 8/10/2014 9:09 PM, Keith Larson wrote:
>> I need to setup a test server to test these commands.  I tried several
>> suggestions without the -delete and they reported syntax errors.  I
>> appreciate the suggestions.  I think that I'll find something workable
>> in all of them, but have to have a safe way to test.
>
> Keith-
> Based on all the feedback you've provided, my solution should work just
> fine for you.  Please make sure you are cd'ed into the proper directory,
> then do "ls *.PA/*".  If that returns a list of files, then "/bin/rm
> *.PA/*" will delete those files (assuming you have the proper
> permission).  Feel free to send me a screen shot which shows the exact
> commands and exact error messages you receive.  It is so often easy for
> a typo to creep into what you do on the command line and not into what
> you show/copy/paste in an email message.
>
> -spp
>


More information about the colug-432 mailing list