T
technocp
Guest
I am using 1-3 TB disks on server
I used locate command to find files and it was all going well. Then came the need of using some more parameters for finding like finding by size, finding by time & date, etc.
So I used the locate command and its database as follows
sudo find $(locate somefile) -<findoption>
it gave me good results. BUT
everything was messed up when it was about finding files that have spaces in its name.
if filenames have spaces then find command divides the output provided by locate command
I used locate command to find files and it was all going well. Then came the need of using some more parameters for finding like finding by size, finding by time & date, etc.
So I used the locate command and its database as follows
sudo find $(locate somefile) -<findoption>
it gave me good results. BUT
everything was messed up when it was about finding files that have spaces in its name.
if filenames have spaces then find command divides the output provided by locate command