简体   繁体   中英

How to find all non-binary text files (with extended attributes) in a directory on OSX bash?

The following command cann't work when the file name contains extended attributes.

cd ~/Library/Containers
find . -type f -name "*.xml"

It returned nothing. But

less com.apple.TextEdit/Data/Music/iTunes/iTunes\ Music\ Library.xmlary.xml

The xml file is there.

为了遵循目录层次结构中的符号链接,您需要使用-L选项来find

find -L . -type f -name "*.xml"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM