02-22-2001
You may not be running GNU utilities. When I work on differnet flavors of UNIX like systems (HP-UX, Solaris) one of the first things I do is set up a development environment to compile GNU utilities for the platforms. The GNU compiler can compile for just about every OS on this planet (and maybe other planets!) You might find it faster to just build a GNU version of find (and then you will be set up for other builds in the future too!!)
The first challenge in this approach is to install a GNU C compiler for your platform. This can be trickly for newbies. However, if you can 'get through it', the rewards are great and very worthwhile.
Perhaps someone else will have a better reply if you state the exact version of find (and the platform).
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Using Solaris 8, I've forgotten how to exclude the current directory in the find results.
find . -type d ! -name "*.CAP"
I want every directory that does not match the *.CAP pattern, except the current directory. (2 Replies)
Discussion started by: dangral
2 Replies
2. Shell Programming and Scripting
i want to compile a list of files in all sub directories but exclude the current directory.
the closest i could get was to search 'only' the current directory, which is the opposite of what i wanted.
find . ! -name . -prune (7 Replies)
Discussion started by: mjays
7 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I just want to ask the following use of find command:
1. how can I find files only to the current directory?
2. how can I find files to directories and all subdiretories (are this include soft links?) but will not go to other mountpoints that is under that mountpoint.
Im combining... (1 Reply)
Discussion started by: james_falco
1 Replies
4. UNIX for Dummies Questions & Answers
Hello,
How to find the list of 5 largest(size wise) file in current directory?i tried using
ls -l | sort -t " " -r +5 -6 -n | head -5
but this is not giving correct output as ls -l command gives 1 extra line of output that is how many total files are there!so by running the above... (4 Replies)
Discussion started by: salman4u
4 Replies
5. Shell Programming and Scripting
Hello all,
I am having a hard type in figuring out how to only gather certain files in the current directory without exploring its subdirectories.
I tried:
find . -name "*.ksh" -prune
this also returns ksh files from lower subdirectories.
I also tried
find . -ls -name "*.ksh"
This also... (8 Replies)
Discussion started by: gio001
8 Replies
6. Shell Programming and Scripting
Hello friends,
Plz suggest the find command,
How to search a string in a paticular string in miltiple files with current dirctory.:)
Thanks in advance.
Siva Ranganath Ch (2 Replies)
Discussion started by: sivaranga001
2 Replies
7. UNIX for Dummies Questions & Answers
i have this find command on my script as:
for i in `find $vdir -name "$vfile" -mtime +$pday`
the problem with this code is that the sub-directories are included on the search. how do i restrict the search to confine only on the current directory and ignore the sub-directories. please advise.... (7 Replies)
Discussion started by: wtolentino
7 Replies
8. Shell Programming and Scripting
Hi,
I have to find files only in the current directory...not in the sub directories.
But when I use Find command ... it searches all the files in the current directory as well as in the subdirectories. I am using AIX-UNIX machine.Please help..I tried to use maxdepth..but it is not working in AIX. (2 Replies)
Discussion started by: vsachan
2 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I am trying to delete file (with a mtime older than 2 days) from the current directory ONLY using:
find . -daystart -maxdepth 1 -mtime 2 -exec rm {} \;
but this doesn't seem to work it is still find files in subdirectories which I don't want to delete.
Please can anyone offer... (2 Replies)
Discussion started by: daveu7
2 Replies
10. Shell Programming and Scripting
hello, all
I have googled internet, read the man page of Find, searched this forum, but still could not figure out how.
My current directory is:
little@wenwen:~$ pwd
/home/little
little@wenwen:~$
I want to use find command to list the files in my current directory, how should i write... (3 Replies)
Discussion started by: littlewenwen
3 Replies
FORTRAN(1) User Commands FORTRAN(1)
NAME
Fortran - Reports statistics regarding an HDF5 file and the objects in the file.
DESCRIPTION
usage: h5fc [OPTIONS] <compile line>
OPTIONS:
-help This help message.
-echo Show all the shell commands executed
-prefix=DIR
Prefix directory to find HDF5 lib/ and include/
subdirectories [default: /usr]
-show Show the commands without executing them
-showconfig
Show the HDF5 library configuration summary
-shlib Compile with shared HDF5 libraries
-noshlib
Compile with static HDF5 libraries [default]
<compile line>
- the normal compile line options for your compiler.
h5fc uses the same compiler you used to compile HDF5. Check with your compiler's man pages for more information on which options are
needed.
You can override the compiler and linker to compile your program by setting the following environment variables accordingly:
HDF5_FC
- use a different Fortran 90 or 95 compiler
HDF5_FLINKER
- use a different linker
HDF5_USE_SHLIB=[yes|no]
- use shared or static version of the HDF5 library
[default: no]
You can also add or change paths and flags to the compile line using the following environment varibles or by assigning them to
their counterparts in the 'Things You Can Modify to Override...' section of h5fc
Variable
Current value to be replaced
HDF5_FFLAGS
""
HDF5_LDFLAGS
""
HDF5_LIBS
""
Note that adding library paths to HDF5_LDFLAGS where another hdf5 version is located may link your program with that other hdf5
library version.
COPYRIGHT
Copyright (C) 2011 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU
General Public License. For more information about these matters, see the file named COPYING
SEE ALSO
The full documentation for Fortran is maintained as a Texinfo manual. If the info and Fortran programs are properly installed at your
site, the command
info Fortran
should give you access to the complete manual.
Fortran (Debian 4.6.1-4) 4.6.1 August 2011 FORTRAN(1)