The above is not working coz when you use . for your directory to search the names will return like ./............. so grep will not return anything...
Why dont you try something like below :
It works fine only when there are no folders created with ".". I have few folders with name that has ".". In this case it fails
Howdy
I have this directory structure ...
eep
eepaptest
eepfatest
eepgltest
eep.old
eeppoptest
ehf
ehfaptest
ehfgltest
ehp
ehpgltest
I want to find files in these directories, but I want to exclude eep, ehf & ehp.
Cany anyone help with the correct command ?? (1 Reply)
Hi,
Can some one help me how to exclude multiple directories using find command..
I have the directory structure below.
/a/a1/b1
/a/c1/c2
/a/d1/d2/d3
I want to exlcude a1,c2and d3 from the above using find,can some one suggest pls..
thanks in advance...
Use code tags... (1 Reply)
Hi Forum.
I'm trying to write a script that finds and deletes files that are older than 300 days. The script will read a table that contains the following 3 columns:
1st col: “Y” means sub-directory scan; "N" means no subdirectory scan
2nd col: sub-directory location
3rd col: File prefix... (7 Replies)
Hi all,
In a directory, I have many video files. Example :
As you can see, some of the video files come with a .aspx file (wich
means the video is actually being uploaded and not entirely written on
the FS)
I try to write a bash script that would find all video files in the
... (1 Reply)
Hi All,
First my OS version is:
ksh:0$ uname -a
SunOS 5.9 Generic_122300-48 sun4u sparc SUNW,Sun-Fire-V440
I want to exclude the following DIR(./country111) in my search pattern:
ksh:0$ find . -name "*.tar"
./country111/COUNTRY_BATCH-801.tar
./country111/COUNTRY_BATCH-802.tar... (3 Replies)
I had a Shell script that removes the files that are in a directory older than the specified days.
find /test/files -mtime +10
I would like to add another condition to the find command above that is to exclude any file starting with ‘CGU'
Thanks (1 Reply)
Gentleman and Ladies,
I am having some difficulty in regards to the find utility. I am trying to not traverse nfs mounts when searching for files or directories.
This command does not seem to work. It still returns directories that live on nfs shares. The man page says:
-fstype type... (6 Replies)
How can i tweak the below find command to exclude directory/s -> "/tmp/logs"
find . -type f \( ! -name "*.log*" ! -name "*.jar*" \) -printNote: -path option/argument does not work with the version of find that i have.
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v (7 Replies)
Hi Folks,
I want to run the below command and to exclude the specific path like /var/test/support/... . How to achieve using the below command
find / -type f \( –perm –4000 –o –perm –2000 \) –print
-Siva
Please do not use FONT tags inside CODE tags. And, there is usually no reason to... (2 Replies)
Can you please help tweak the below command to exclude all directories with the name "logs" and "tmp"
find . -type f \( ! -name "*.tar*" ! -name "*.bkp*" \) -exec /usr/xpg4/bin/grep -i "user_1" /dev/null {} + >result.out
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v... (9 Replies)
Discussion started by: mohtashims
9 Replies
LEARN ABOUT OPENDARWIN
kextstat
KEXTSTAT(8) BSD System Manager's Manual KEXTSTAT(8)NAME
kextstat -- display status of dynamically loaded kernel extensions
SYNOPSIS
kextstat [-b kext_bundle_id] [-k] [-l]
DESCRIPTION
The kextstat utility displays the status of any kernel extensions currently loaded in the kernel. The following information is shown for
each loaded kernel extension:
Index The load index of the kernel extension (used to track references). Gaps in the list indicate kernel extensions that have been
unloaded.
Refs The number of references to this extension by others. If nonzero, the extension cannot be unloaded.
Address The address in kernel space where the extension has been loaded.
Size The number of bytes of kernel memory that the extension occupies. If this is zero, the extension is actually a built-in part of
the kernel that has a record as an extension for resolving dependencies among extensions.
Wired The number of wired bytes of kernel memory that the extension occupies.
Name The CFBundleIdentifier of the kernel extension.
(Version)
The CFBundleVersion of the kernel extension.
<Linked Against>
The index numbers of all other kernel extensions that this extension has a reference to.
The following options are available:
-b kext_bundle_id
Display the status of only the kernel extension with the given bundle identifier. This option trumps the -k option; if both are
given and a kernel component is specified, its information is shown.
-k Don't show information for built-in components of the kernel.
-l Print the list of loaded kexts only and omit the header (useful for running output through text-analysis tools).
DIAGNOSTICS
The kextstat utility exits with a status of 0 on success and with a nonzero status if an error occurs.
SEE ALSO kextcache(8), kextd(8), kextload(8), kextunload(8)HISTORY
The kextstat command is based on the command kldstat written by Doug Rabson <dfr@FreeBSD.org>
Darwin April 17, 2002 Darwin