Re: Can't say "up to and including" with -newer without a symmetrical -older

2013-09-21 Thread jidanni
> "JY" == James Youngman writes: JY> On Sat, Sep 21, 2013 at 11:46 PM, wrote: >> Have it your way. JY> Wow, what did I say to provoke that reaction? I don't know if it is worth implementing either. I apparently did at one time but it would take a lot of concentration for me to figure out w

Re: Can't say "up to and including" with -newer without a symmetrical -older

2013-09-21 Thread jidanni
P.S. odd how one is forced to search Google http://www.google.com/search?q=%22Re%3A+Can%27t+say+%22up+to+and+including%22+with+-newer+without+a+symmetrical+-older%22 for the original message, given the headers I received.

Re: Can't say "up to and including" with -newer without a symmetrical -older

2013-09-21 Thread jidanni
Have it your way. What really bothers me is cpio's saying it won't copy because an older or same version exists. Why can't it cough up which and not leave the user the task...

who would have ever guessed that findutils have info pages?

2013-08-14 Thread jidanni
Gentlemen, man cat says SEE ALSO tac(1) The full documentation for cat is maintained as a Texinfo manual. If the info and cat programs are properly installed at your site, the com- mand info coreutils 'cat invocation' should give you access to

man find: say what you mean by "Command line argument"

2013-08-06 Thread jidanni
On man find you had better add some more explanation to %H Command line argument under which file was found. %P File's name with the name of the command line argument under which it was found removed. else nobody knows what you are talk

Re: xargs -p operations out of order!

2013-07-31 Thread jidanni
> "EB" == Eric Blake writes: EB> Yes, I think your reading of POSIX shows we have a bug in xargs. Go get em'! I mean how can anybody use the thing with all that junk erupting in one's face in the simplest case of -p with no redirection etc. etc. Thanks!

xargs -p operations out of order!

2013-07-31 Thread jidanni
What good is this? $ seq 111|xargs -n 5 -p echo 1 2 3 4 5 ?... echo 6 7 8 9 10 ?... echo 11 12 13 14 15 ?...y echo 16 17 18 19 20 ?...11 12 13 14 15 You need to do the operation first before issuing the next prompt! It should look like $ seq 111|xargs -n 5 -p echo 1 2 3 4 5 ?... echo 6 7 8 9 10

Bug#626907: do a better job of differentiating find and oldfind

2011-05-16 Thread jidanni
X-Debbugs-Cc: bug-findutils@gnu.org Package: findutils Version: 4.5.9-1 Severity: wishlist # man oldfind|wc 13309696 78854 # man find|wc 13309696 78854 # man oldfind|grep -ci oldfind 0 # which oldfind|xargs ls -l -rwxr-xr-x 1 root root 154520 May 8 2010 /usr/bin/oldfind # which

documentation of -newerXY

2010-06-15 Thread jidanni
Regarding: -newerXY reference Say if X and Y refer to the same file or not. Give a valid example and explain what it does.

Can't say "up to and including" with -newer without a symmetrical -older

2010-06-15 Thread jidanni
$ for i in w x y; do sleep 4; touch $i; done $ find ? -newer x y $ find ? ! -newer x w x OK, so how does one find just x y ? No easy way, as you have a unsymmetrical -newer without a matching -older. One must resort to big hassles to work around your unsymmetrical offering of commands. You migh

Re: Bug#576677: find's %Y

2010-04-07 Thread jidanni
$ w3m -dump http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576772|grep ^Version Version: 4.5.7-1 findutils: Installed: 4.5.7-1

Re: find's %Y

2010-04-06 Thread jidanni
Anyway, I have shown %Y is moody and not to be trusted. I will now step back and hand the baton to others.

Re: find's %Y

2010-04-06 Thread jidanni
So I thought cd'ing to /tmp would help (cd /tmp find "${DESTDIR}" -type l -printf '%p %Y\n' | sed -n 's/ [LN]$//p' \ | xargs --verbose -rL1 rm -f ) however the files got zapped anyway. So it's back to the random %Y accuracy theory.

Re: find's %Y

2010-04-06 Thread jidanni
Apparently it is affected by CWD: 14:21 ~$ cd - /tmp 14:21 tmp$ find /tmp -name sleep -printf %Y\\n f f 14:21 tmp$ cd - /home/jidanni 14:21 ~$ find /tmp -name sleep -printf %Y\\n N N 14:21 ~$ cd - /tmp 14:22 tmp$ find /tmp -name sleep -printf %Y\\n f f 14:22 tmp$ mount|egrep /home\|/tmp /dev

Bug#576772: %Y affected by path

2010-04-06 Thread jidanni
X-debbugs-Cc: m...@stro.at, 576...@bugs.debian.org, bug-findutils@gnu.org Package: findutils Version: 4.5.7-1 Dear Find Sirs, as you can see on http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576677#130 for the %Y code to function properly, one must give the full path to the file, not just a high

Re: find's %Y

2010-04-06 Thread jidanni
What's barfy is it turns out the same command sometimes gives different output! $ mount|grep /tmp #df shows plenty of space too. tmpfs on /tmp type tmpfs (rw) 14:04 ~$ find /tmp/NOSHUCH -printf %Y\\n N 14:05 ~$ find /tmp/sleep -printf %Y\\n f 14:05 ~$ find /tmp -name sleep -printf %Y\\n ###COMPAR

Re: -readable by who

2010-02-20 Thread jidanni
> "JY" == James Youngman writes: JY> On Wed, Jan 13, 2010 at 11:06 PM, wrote: >>       -readable >>              Matches files which are readable... >> Also mention "by the current user" I suppose. JY> Since there is more than one possible interpretation of the "current JY> user" this clari

Re: -readable by who

2010-02-20 Thread jidanni
Gentlemen, some of these are clearer than man test or (info "(coreutils) Access permission tests") bash$ help test|grep you -r FILETrue if file is readable by you. -w FILETrue if the file is writable by you. -x FILETrue if the file is executable by you.

-readable by who

2010-01-13 Thread jidanni
-readable Matches files which are readable... Also mention "by the current user" I suppose. And perhaps mention a way to see if they are readable by the general public...

Re: keep find from trying to spider directories where it has no permission

2009-11-15 Thread jidanni
> "JM" == Jim Meyering writes: JM> James Youngman wrote: >> On Sat, Sep 19, 2009 at 4:41 PM, wrote: EB> Untested, but: EB> -type d \! -readable -prune EB> seems like it should do the trick of telling find to not descend into EB> unreadable directories. >>> >>> Well, I hope there can be an e

Re: keep find from trying to spider directories where it has no permission

2009-09-19 Thread jidanni
EB> Untested, but: EB> -type d \! -readable -prune EB> seems like it should do the trick of telling find to not descend into EB> unreadable directories. Well, I hope there can be an example added to the find man page. Anyway, in the general case ... there needs to be a way... $ chmod 0 jidanni.o

Re: keep find from trying to spider directories where it has no permission

2009-09-19 Thread jidanni
>> It seems there is no way to tell find to look before it leaps, >> >> $ find /tmp -user $LOGNAME -type f -mtime +1 -exec rm {} \; EB> Have you looked at using -ok instead of -exec? It's a total batch job, -ok not OK, OK? I'm trying to tell find: do what you need to do, but if you encounter an

keep find from trying to spider directories where it has no permission

2009-09-15 Thread jidanni
It seems there is no way to tell find to look before it leaps, $ find /tmp -user $LOGNAME -type f -mtime +1 -exec rm {} \; find: /tmp/mc-jidanni3: Permission denied $ find /tmp -depth -user $LOGNAME -type d -empty -mtime +1 -exec rmdir {} \; find: /tmp/mc-jidanni3: Permission denied Is there any

Re: [bug #26701] if there are any funny characters, * no longer matches in certain locales

2009-07-13 Thread jidanni
> Additional Item Attachment, bug #26701 (project findutils): > File name: test.shSize:0 KB Great, 0 KB. Scare the user. I would round up.

Re: -ok not totally OK

2008-11-10 Thread jidanni
Mention both your ways JY> ed $(find -name '*.c' -ok echo {} \; ) JY> xargs -a <(find -name '*.c') -n1 -p ed and mine. P.S., today is the first time I ever saw "<(...)", OK, I see it on the bash man page under Process Substitution.

Re: -ok not totally OK

2008-11-08 Thread jidanni
JY> If you would like to propose an illustrative problem for which JY> your workaround is the most effective solution, we can probably JY> include that in the documentation as an example. OK, please mention something like: -ok in contrast to -exec, has its stdin redirected for various reasons. To

Re: -ok not totally OK

2008-10-14 Thread jidanni
OK, but considering > A workaround to revive stdin on -ok is: -ok true \; -exec Will you A. Clamp down stdin on -exec too, for my own good; or B. Mention the workaround on the man page; or C. Stop clamping stdin on -ok, as people will just workaround it anyway, and just say you will read up to a RE

-ok not totally OK

2008-10-13 Thread jidanni
Regarding "-ok": if you want to type y but by mistake you type anything else, you have to start all over again. Therefore there should also be a "p" offered: "bring me back to the previous line and ask me again". By the way, -ok command ; Like -exec but ask the user first (on

File vs. file sounds bad

2008-06-17 Thread jidanni
On the find man page -cnewer file File's status was last changed more recently than file was modi- fied. If file is a symbolic link and the -H option or the -L option is in effect, the status-change time of the file it points

Re: -newer vs. FAT two second resolution

2008-04-13 Thread jidanni
I'm trying to say that find -newer is affected by the same problem as this thread, for better or worse: http://lists.gnu.org/archive/html/bug-coreutils/2008-03/msg00252.html JY> The -newer test, and find generally, deals only with the information JY> the OS gives it. Yes, but then a decision is m

Re: -newer vs. FAT two second resolution

2008-04-11 Thread jidanni
Oops, pasted wrong. OK: $ cd /some_Linux_dir; stat y Modify: 2008-04-09 11:11:11.0 +0800 $ cp -a y /vfat $ umount /vfat; mount /vfat $ stat /vfat/y Modify: 2008-04-09 11:11:10.0 +0800 Anyway, please try $ cd some_[V]FAT_directory_of_yours $ stat *|perl -nwe 'print if /(Access|Modif

-newer vs. FAT two second resolution

2008-04-08 Thread jidanni
find -newer will have the same problem on FAT filesystems as cp -u: http://lists.gnu.org/archive/html/bug-coreutils/2008-04/msg00027.html $ touch -d 11:11:11 y $ stat y Access: 2008-04-09 11:11:11.0 +0800 $ cp -a y /vfat $ umount /vfat; mount /vfat $ stat /vfat/y Modify: 2008-04-09 11:11:10

Re: % keys for st_blocks and st_size

2008-03-24 Thread jidanni
OK, then at least two out of the three %'s can still be given. JY> If you would like to propose some specific replacement text I am just saying that the man page leaves dead ends for average users. This is getting beyond my dwindling mental resources... excuse me, must step out of discussion here.

Re: % keys for st_blocks and st_size

2008-03-24 Thread jidanni
> "JY" == James Youngman <[EMAIL PROTECTED]> writes: JY> On Sun, Mar 23, 2008 at 9:29 PM, <[EMAIL PROTECTED]> wrote: >> `%S' >> File's sparseness. This is calculated as `(BLOCKSIZE*st_blocks / >> st_size)'. >> >> OK, but then mention the -printf % keys for st_blocks and st_size! JY> They'r

give bug address

2008-03-24 Thread jidanni
Please don't say on your man page Other comments about find(1) and about the findutils package in general can be sent to the bug-findutils mailing list. To join the list, send email to [EMAIL PROTECTED] Do like coreutils and just give the address. Otherwise you instill doubt as

% keys for st_blocks and st_size

2008-03-23 Thread jidanni
`%S' File's sparseness. This is calculated as `(BLOCKSIZE*st_blocks / st_size)'. OK, but then mention the -printf % keys for st_blocks and st_size!