Quantcast
Channel: use locate command to find only files, excluding symbolic links and directories - Ask Ubuntu
Browsing all 2 articles
Browse latest View live

Answer by muru for use locate command to find only files, excluding symbolic...

locate itself does not have an option to filter out links (it can only follow or not follow links. You can filter out links using something else:locate() { command locate -0 "$@" | # print filenames...

View Article



use locate command to find only files, excluding symbolic links and directories

I'm trying to use locate to find any files on my system that contain the word 'Jaynes'. Unfortunately there's a symbolic link called Jaynes that points to a directory. I want to exclude all symbolic...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images