shell - Exclude certain directories in find results in AIX -
i trying search directories have extended attributes (-ea) not have string in path name. trying:
find / -ea -type d ! -name '*arcdst*'
however still returns /arcdst , directories under it. have looked @ similar answers on site, per aix man page -not not available nor -path. aix 6.1 tl6.
many thanks, larryd
your command not looking complete paths without arcdst only directories other name arcdst. expect find find directories , files under directory arcdst, find should skip top directory in result.
if not mind little overhead, can filter results.
find / -ea -type d | grep -v 'arcdst'
when don't want find in arcdst in first place, can tell find not in arcdst directory
find $(ls / | grep -v arcdst) -ea -type d
Comments
Post a Comment