![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Very Strange Behavior for redirection | cahook | Shell Programming and Scripting | 5 | 08-08-2007 11:32 AM |
| Strange Real Memory usage behavior | Skyybugg | AIX | 5 | 05-31-2007 10:17 AM |
| Strange Behavior on COM2 | Elwood51 | UNIX for Dummies Questions & Answers | 0 | 08-02-2006 03:31 PM |
| Strange behavior from 'read' statements. (ksh - but could be same on other shells) | alexop | Shell Programming and Scripting | 5 | 05-02-2006 11:14 AM |
| strange sed behavior | Kevin Pryke | UNIX for Dummies Questions & Answers | 5 | 06-13-2003 04:34 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
strange behavior of find with xargs
Help me understand the right output.
We have two machines. The first one is HP-UX machine1 B.11.00 U 9000/800 694339343 unlimited-user license The second one is AIX machine2 2 5 00067B2F4C00 with AIX version 5.2.0.0 Here is the command that I use on both systems on different directories find . -size 30000 | xargs ls -l On the HP system, this lists everything on the directory irrespective of the file size. I know this for a fact because, when I do a wc -l on the above as well as ls -l | wc -l, I get the same result/number. On the AIX system, though the find command lists the files that are >= to size specified and then does output a line with ":" by itself followed by the listing of all the files. I would assume the intent of the above command is to list the files in the current directory which are >= to the size only, However I dont seem to be able to get that in these systems. The closest to the result that I seem to get is on the AIX system until the line by the ":" by itself. Am I wrong in my assumption or is there something more to this? Can someone please explain. Thanks. Jerardfjay ![]() |
|
||||
|
Quote:
did you mean if files were found for "find . -size 30000" then run the find again with the xargs command? Jerardfjay |
|
|||||
|
-ls is not GNU specific, it exists for example on Solaris without GNU find. However neither is it required by POSIX, which requires only the following:
Code:
-name pattern
-nouser
-nogroup
-xdev
-prune
-perm [-]mode
-perm [-]onum
-type c
-links n
-user uname
-group gname
-size n[c]
-atime n
-ctime n
-mtime n
-exec utility_name [argument ...] ;
-exec utility_name [argument ...] {} +
-ok utility_name [argument ...] ;
-print
-newer file
-depth
|
![]() |
| Bookmarks |
| Tags |
| mtime |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|