How to search a file with a particular extension and a particulat string in its name?

0 votes
I have created a file and forgot the filename, i remember the extension and a part of the name how can i find the file in linux?
Mar 8 in Others by David
43 views

1 answer to this question.

0 votes

You can easily find the file using this command,

./ -name "*.extension" | xargs grep –i "partoffilename"
answered Mar 8 by Nabarupa

Related Questions In Others

0 votes
1 answer

What is a name function in JavaScript & how to define it?

A named function declares a name as ...READ MORE

answered Mar 6 in Others by Frankie
• 9,810 points
31 views
0 votes
1 answer

How to unistall a file in Linux?

You can uninstall a file using the ...READ MORE

answered Mar 8 in Others by Nabarupa
72 views
0 votes
0 answers

How to create a batch file in windows?

What is a batch file and How ...READ MORE

Jul 3 in Others by sindhu
28 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
88 views
0 votes
1 answer

Where can I find the details of installed files?

The details of recently and locally installed ...READ MORE

answered Mar 8 in Others by Nabarupa
20 views
0 votes
1 answer
0 votes
2 answers

What is white box testing and how is it different from black box testing?

Black Box Testing is a software testing method in ...READ MORE

answered Feb 20 in Others by preetiagarwal
• 170 points
61 views