New answers tagged

1 vote

shell helper function wrapping `find` and ignoring some dirs

The following function will convert each argument being exactly -exclude_hazards to arguments responsible for the desired exclusions: my_find () ( #!/bin/sh mark= for arg do [ -z "$mark" ] ...
Kamil Maciorowski's user avatar
1 vote

Find files but exclude several directories?

exclude directories during find sudo find ~ -iname "*s40*" ! -path "*timeshift*" this command searches in the Home directory /home/username and finds files (or directories) ...
Phil Headford's user avatar

Top 50 recent answers are included