isk usage and file size in `ls`.
I have to remember `ls -ls` rather than turning to `du`. ;-|
Thank you.
Peggy Russell
out
-rw-rw-r-- 1 user group 10 2011-05-13 17:19 out
........
Thank you.
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
[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
-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
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