I'm having the same problem.Tracker-search in the terminal works and returns everything I searched for. I even managed to get it working in the GNOME dash, using the tracker-search extension. But no matter what I do, Nautilus doesn't return any searches.
Here Is a problem I am facing with awk.
Query --> I want to search for a string in a file and print next 15 lines below the matched string.
1.We do not have GNU grep so cannot use grep -A or grep -B commands.
2. Instead of passing the search pattern as a string to awk.
What's the best way to search my file system on ubuntu and get results almost instantly? I have used catfish , tracker and the usual search tool provided with ubuntu.
Tracker finds nothing, ubuntu search tool is too slow and catfish most of the time finds nothing. I have a lot of PDFs and DJVU files that I want to access.
I have been using Ubuntu for some time now, but never really had the need to search for a specific file until recently. I used nautilus browser set to 'file system' to attempt to search the entire drive. The search lasted a second and turned up zero results.
I think I have had enough of the useless Catfish. If there a search tool that will actually let me do file commands within it. For example, a program where I could copy/paste/delete search results? I can't do anything with the results in Catfish but memorize them and search for them one by one in Thunar.
How can I search for a string in a file recursively in BusyBox 1.0 if find and grep are not available ?
(I want to telnet into the router and find out where the iptables rules are stored.)
BusyBox v1.00 (2011.01.13-12:30+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
# help
Built-in commands:
-------------------
.
Hi,
I'm working on a script which includes a part where i need to search for a string first using "grep" and then compare it with another variable using "if".
It should be something like
a=search pattern using grep
if [ $a = $b ]
then
..
The problem i'm facing is, in case the grep returns no result i get a syntax error in the if section.
I don't like to compare any Linux program to Windows, but the indexing in Windows 7 seems to be well integrated with the File Manager
(in Windows 7) when I type anything in the search field,
up come all the files related to that string, whether filenames
or files containing that string
Windows file manager then displays a SNIPPET of the section (similar to grep)
it is fast, and works we
Introduction
If you want to search for multiple expressions while using grep you can do it, grep will use all expressions you pass to it, and will apply a logic or to them.
So, if any of them is present the line with that occurrence will be printed.
Specify multiple expressions / patterns to search for to grep
The option that will help use doing this is -e.
grep -e pattern1 -e pattern2 -e pattern3