Search Results

Search: Posts Made By: hodnov
10,981
Posted By hodnov
Looks like that will work. Thanks! I...
Looks like that will work.

Thanks!

I also managed to google this up....

find /vmfs/volumes/v02tstn02a01/ -type d | while read dir; do if [ ! -f $dir/*.vmx ]; then echo $dir; fi; done;
...
4,999
Posted By hodnov
Thanks for the reply Jim, Correct. The...
Thanks for the reply Jim,

Correct.
The find command I listed was just an example.

I have a number of subdirectories within a folder called /vmfs/volumes/
There are an expected list of files...
10,981
Posted By hodnov
Thanks for the reply! I have pasted my...
Thanks for the reply!

I have pasted my attempts with your suggestion below.



[root@Test23]# find /vmfs/volumes/v01tstn01a01 \( ! -name '*.vmx' \)
/vmfs/volumes/v01tstn01a01
[root@Test23]#...
10,981
Posted By hodnov
find directories that do NOT contain a certain file extension
for x in `find /vmfs/volumes/v01tstn01a01/ -type d`; do find $x -name '*.vmx' > /dev/null || echo $x; done;

The goal of this is to find the subdirectories that do NOT contain a file with the...
4,999
Posted By hodnov
Find folders that do NOT contain a certain file
I'm no linux guru so any help would be greatly appreciated!

I need to output all folders that do not contain a file of a certain extension.

Currently I have the following

find / ! -name...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 09:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy