Re: find: print trailing slash for directories

2022-08-07 Thread Martin Schulte
Hi! > Could somebody please advise, if there is some easy way to patch this > myself? DISCLAIMER: - For the reasons mentioned here before I don't consider this a good idea but as long as you promise not to tell anyone that it was me you provided the patch ;-) - I tried it with Debian 11 - It ha

Re: find inodes of a dir

2020-08-15 Thread Martin Schulte
Hi Andrei! > I’m trying to identify all hard links pointing to my root directory: > $ sudo ls -lid / > 2 drwxr-xr-x 23 root root 4096 Aug 11 20:58 / > > The inode number is 2 and count of hard links is 23. > > Then I run find: > > $ sudo find / -xdev -inum 2 2>/dev/null | wc -l > 15 I'm rather

-used not working correctly?

2019-11-14 Thread Martin Schulte
Hello, I create files t (n=1,3,5,7) with ctime=now and atime=now+ days: $ uname -a $ echo $ find --version $ for d in 1 3 5 7; do > touch -a -d "$(date -d "$d day" '+%Y-%m-%d %H:%M:%S')" t$d > done $ echo $ echo find: $ find . -name 't?' -used +4 $ echo done. I expect ./t5 ./t7 as output from