Hello,
This will work in a single folder. You can expand this out to work in an entire
directory tree with the find command.
find . -name '._*' -exec rm '{}' ';'
This is not the most efficient way to do it as it will exec a separate "rm"
command for each file that starts with "._'.
If you wanted to do this for thousands of folders on a regular basis, you
would want to learn how to use "xargs" with the find command.
The find command will search any directory tree finding files that match one of
several patterns including create date, modification date, permissions, name or
size. You can either print out the result or run additional commands on the
results. So you could find all mp3 files and move them to a new location. I've
also used it to print out every file name and then use sed to remove the
directory structure and sort to count duplicates files.
The unix daily, weekly and monthly commands can have find commands to prune out
log files that are old or other temporary files.
.
Best wishes,
Jonathan Cohn
> On Feb 19, 2022, at 13:42, dan d. <[email protected]> wrote:
>
>
> No utility is required because a terminal command easily does it; which the
> utility likely duplicates. While in terminal and in the flash
> drive do this command which removes all .folders or single .files, make sure
> none of them are neededd as are some in a users home directory.
>
> make note of the specific syntax characther by character which might not be
> spoken and which limits the action to only dot files in the
> current flash drive home directory:
>
> RM -rf ./.*
>
> On Fri, 18 Feb 2022, christopher moore wrote:
>
>> Hello,
>> Has anyone had experience running the dot_clean utility in terminal to
>> remove dot files from USB drives?
>>
>> Chris
>>
>>
>
> --
> ent-
> XR
>
> --
> The following information is important for all members of the Mac Visionaries
> list.
>
> If you have any questions or concerns about the running of this list, or if
> you feel that a member's post is inappropriate, please contact the owners or
> moderators directly rather than posting on the list itself.
>
> Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at:
> [email protected] and your owner is Cara Quinn - you can reach Cara at
> [email protected]
>
> The archives for this list can be searched at:
> http://www.mail-archive.com/[email protected]/
> ---
> You received this message because you are subscribed to the Google Groups
> "MacVisionaries" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/macvisionaries/f33d99fc-7481-d9cc-dcaf-30bb9ca1edb%40gmail.com.
--
The following information is important for all members of the Mac Visionaries
list.
If you have any questions or concerns about the running of this list, or if you
feel that a member's post is inappropriate, please contact the owners or
moderators directly rather than posting on the list itself.
Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at:
[email protected] and your owner is Cara Quinn - you can reach Cara at
[email protected]
The archives for this list can be searched at:
http://www.mail-archive.com/[email protected]/
---
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/macvisionaries/6886ED7D-DF51-4375-83AA-77A191F72944%40gmail.com.