locate is the main command in the mlocate package. It is used to search for files, by default by a substring of their full path, based on a database populated by the updatedb command.
Questions tagged [locate]
263 questions
-1
votes
1 answer
Linux's locate command returning the path of a deleted file
I am writing a bash shell script which removes a file using the following command
rm abc.xsl
I handled the case of getting the prompts and providing the required 'y' or 'n' inputs.
In order to verify that the file has been removed, I validate the…

Sharad Nanda
- 406
- 1
- 15
- 27
-1
votes
1 answer
How to print rows and columns of missing values using NaN
for i in range(19):
for j in range(5):
if df.iloc[i,j] == 'NaN':
print('Missing Value at (row,col): ({}, {}) '.format(i,j))
-1
votes
1 answer
MySQL Find location of first non-numeric character in string
I would like to find the location of the first non-numeric (0-9) character in a string. That is, a space, a dash, a letter or anything but a number.
I seem unable to combine locate with regex to get a result like this:
Data …

Braamstruik
- 211
- 2
- 11
-1
votes
2 answers
Using GNU parallel command with gfind to gain in runtime for gupdatedb tool
I make follow to the previous post combine parallel and gfind
I would like to build the gupdatedb database, containing all from main root / excepted the PRUNEPATHSlisted more below. I am working on MacOS 10.15 Catalina.
So, I tried to modify the…
user1773603
-1
votes
1 answer
How do use MySql Regex inside locate?
If I try to use Regex inside locate it fails
Select Locate(FieldA regexp '[a-z][A-Z][a-z]',Binary FieldA) from PatternTester
as per http://sqlfiddle.com/#!9/403c36/2.
If I search for the explicit letter pattern it locates it correctly:
Select…

user3649739
- 1,829
- 2
- 18
- 28
-1
votes
1 answer
Fortran Subroutine not returning value
i run into a strange problem.
I am using the locate subroutine from the Fortran-Recipe book.
The goal is to find a random number in a CDF-table and return the index of the arrax, such that i can look in another table for the value this would…

busssard
- 158
- 1
- 1
- 11
-1
votes
1 answer
Can't locate Session.pm in @INC
I have a problem with Session on Perl.
I am trying to fix this error
perl -e "use Session;"
Can't locate Session.pm in @INC (you may need to install the Session module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2…

Ricardo Marques
- 11
- 2
-1
votes
1 answer
slocate - how to search a particular directory
How can I search a particular directory using 'slocate' (locate, mlocate)? It seems that, unlike 'find', slocate does not provide an option for the directory to search in, so at this moment I just do
slocate file_name | grep "/home/"
but have a…

John Smith
- 1,027
- 15
- 31
-1
votes
1 answer
Finding location of an array - C++
As you can see, I want to find the location of an given array.
For example :
I have an array {5 , 2, 3, 1} (I want to decide how many guesses I want to guess)
Then the program will sort it {1, 2, 3, 5}
At last, I'll be given a chance to guess the…

Black Cat
- 87
- 1
- 2
- 8
-1
votes
1 answer
Trying to deploy code to Red Hat Linux but Folder does not exists at the location
First. Yes I have been searching for a related posting but am not having any luck so I'm resorting to this post now.
I'm deploying code to our Red Hat Linux box and am trying to find the right folder to deploy to. The code needs to go into the…

edjm
- 4,830
- 7
- 36
- 65
-1
votes
2 answers
Where to edit page on WP
I took over a website about 6months ago and am having a bit of difficulty finding WHERE items are defined at times.
I am trying to edit
http://www.mercurymosaics.com/mosaic-classes/
On the right there is a section that says:
"View Calendar
Beginner…
-1
votes
6 answers
Get part of array string
Hello my output PHP code is :
Array ( [country] => BG - Bulgaria )
... and he comes from here :
dslb-094-219-040-096.pools.arcor-ip.net…

SZ4
- 61
- 2
- 9
-2
votes
1 answer
In Python, is there a way to create a new column in Pandas, but select which row the data would start on?
Basically I want to add create a new column for each years worth of data but have it start one row down from where the last column started.
This is what it would look like in Excel
-2
votes
1 answer
why "locate" doesn't return all existing files?
I wonder why locate doesn't file all .exe files on my system depsite being up to date:
ebra@him:~$ sudo updatedb
ebra@him:~$ locate *.exe
/home/ebra/a.exe
/home/ebra/Downloads/santa.exe
ebra@him:~$
ebra@him:~$ ls…

Ebrahim Ghasemi
- 5,850
- 10
- 52
- 113
-2
votes
1 answer
Unable to locate elements (protractor Jasva Script) though CSS seems to be correct in dev tool
[![This image shows html code ][1]][1]
my java script code to locate element in protractor is below :
element(by.css("insight-top-bar insight-predefined-charts-container button div")).click();

vimal
- 9
- 3