Re: Documentation question (correction?) for -ls: 1K vs 1 byte block size

2011-05-16 Thread Peggy Russell
isk usage and file size in `ls`. I have to remember `ls -ls` rather than turning to `du`. ;-| Thank you. Peggy Russell

Documentation question (correction?) for -ls: 1K vs 1 byte block size

2011-05-16 Thread Peggy Russell
out -rw-rw-r-- 1 user group 10 2011-05-13 17:19 out ........ Thank you. Peggy Russell

Re: If the expression contains *any action* anywhere (excluding -prune), the user must provide all actions.

2011-04-05 Thread Peggy Russell
ide effect"? > > #4 The `-exec` above has an exit status success or true. Replace `-exec` > > with `-true`.   Shouldn't the output be the same as #3? > > No, because -true has no side effect. > > > find . -name "foo" -true -o -name "abc1.txt" > > ./foo > > ./foo/abc1.txt > > ./abc1.txt I equated `-true` to `-exec`, and I see my error. `-true` is a test while `-exec`is an action. I definitely have a better understanding of expression building in `find`. Thank you. Peggy Russell

Re: Technical reason to use `-path "./foo" -prune` vs `-name "foo" -prune`

2011-04-04 Thread Peggy Russell
[f] ./abc3.txt +1 [d] ./foo+1 [f] ./foo/abc3.txt +2 [d] ./foo/baz+2 [f] ./foo/abc2.txt +2 [f] ./foo/abc1.txt +2 [f] ./abc2.txt +1 [f] ./abc1.txt +1 Thank you. Peggy Russell

execdir plus and commands generated

2011-03-29 Thread Peggy Russell
-I{} implies -L1) and `execdir \;` below each produced 6 `rm` commands each. find . -type f -name "*.txt" \ -execdir bash -c 'echo "+++Deleting {} - $(pwd)"; rm "{}"' \; find . -type f -name "*.txt" -print0 | xargs -0I {} bash -c 'echo "+++Deleting {} - $(pwd)"; rm "{}"' Thank you. Peggy Russell

Suggestion: verbose option. Doc Update: -print and no action are NOT the same

2011-03-29 Thread Peggy Russell
ules of Boolean operator precedence apply, so the pruned directory does not appear in the output. As described here: http://content.hccfl.edu/pollock/unix/findcmd.htm Environment: find --version find (GNU findutils) 4.4.0 Thank you. Peggy Russell