Software :: Searching In Command Line Like In Windows Search Or MacOS Finder?
Jan 25, 2011
I am very familiar with "find" and "locate" and many of the options they provide. Does anyone know a tool in order to search inside of documents and files like you would do it with the finder on Mac or with Windows search?I guess these tools use an indexer which is always running and indexing the content of every file so you can search and find a file based on what is in it, rather than by name only like locate would do.
I have some large log files that I would like to search for a specific text via command line in the file. I know I can open the file in GUI but is there command that I can run against the file path then make it search in the file in command line?
This is a bit of a long shot and I think the answer will be no but I thought I'd ask just in case. I have a number of tutorials in html but I want to be able to search for particular information in these files and display that information in the terminal rather than having to go through a browser. Apart from using grep which gives a pretty messy display or having to write a a specially Bash or python script, is there any command line tools that can provide such a function?
Possible Duplicate: Cross-platform file system Can you please tell me what kind of file system can be read by MacOS X, Linux and Windows? And it can create a file greater 4 GB?
I have an external hard drive that needs to be readable and writable between MacOSX, Ubuntu, and Windows. I also need to work with files over 4gb in size (which can't be done with Fat32, which happens to work with all 3 OS's) I tried MacOS journaled, that didnt work. Before I start reformatting and doing a bunch of guess and check, I wanted to know if the answer was known.
Want to search for ~ and delete it as well as to append the entire line to the above line. For Ex:
1111xxxx date Sandy area is ~around this area.3222xxx date There seems to ~left side of map, the colours are accurate (showing green areas)Even if I ~zoom in, the green parks, xxx3258 date The dammed up ~away, the "other" body of water varies ~blackNatural gas leaching.
IT MUST LOOK LIKE:
1111xxxx date Sandy area is around this area. 3222xxx date There seems to left side of map, the colours are accurate (showing green areas)Even if I zoom in, the green parks, xxx3258 date The dammed up away, the "other" body of water varies blackNatural gas leaching.
I'm looking for a simple and reliable search engine for searching particular content on the files in the storage database. The output will display files' name and their path. Google search found following site:- "List of search engines";[URL]..There are many of them. I have no idea how to make my selection. Could you please shed me some light. Furthermore can a simple shell command do the same job?
I'm in Ubuntu and want to navigate the directories of a Windows box upstairs. I can see it and navigate around the shared folders using the file browser (the address bar shows smb://computername/shared-directory/) but how do I navigate around using the command line? The IP addy of the upstairs computer is 192.168.0.199.FYI: If this is posted somewhere else I couldn't find it
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
What's the best procedure to kill a desktop window from the command line? I'm having the problem on a FC 12-64 machine that using the File Browser window locks up most of the desktop. This might be software problem or it could be due to a defective mouse. I haven't had time to see if other windows cause the same problem. To do that, I'd like to kill the File Browser window.
The only windows that work are terminal windows. So I tried using the command line from a terminal to kill the file browser. When I do a kill -9 on the process involving nautilus, the process dies, the File browser window flickers off and back on, and then a new process involving nautilus appears in the list displayed by ps -ef. Is there a way to kill the File Browser window and make it stay dead?
I successfully installed 10.10 dual booting with Win 7.Today I booted into Win7 and Windows insisted on running checkdisk. After about 10 minutes Windows booted. I then rebooted into Ubuntu. Unfortunately Ubuntu only boots into the command line now. Being very new to Linux I don't have any idea how to fix this.
My computer is connected to the college lan where almost all machines are some variant of Windows OS. If i use Places > Network, while windows network is displayed, mostly it returns unable to mount shares, my workaround for this problem is I use some tool like nbtscan to see which hosts are up and then use network > Connect to Server > windows share and type in the ip address, this mounts the windows share even though Places> network doesn't display such hosts. My question is there some command line way where I can invoke nautilus to mount the windows share, ie the same job connect to server > windows share does? And is there some application like say lan surfer for windows which lists all the folders shared by a windows client.
I have searched a lot in google regarding the various search commands available for linux, but everywhere i got the commands only for files. But suppose i know the name of a folder but not it's path, then what is the command to search for it's path.
I've got some photos with two or more tags on and I was wondering if there was a way of only showing photos that had one tag and not another. I've found a way of doing it with AND and OR (the default) but I really want to search, for example, all my 'holiday' photos that don't have any pictures of person 'X' in.
When I used the find command, I almost always need to search the local drives. But, I almost always have super large network shares mounted and these are included in the search. Is there an easy way to exclude those in the find command, grep and other similar commands? Example:
I need a hand with a line of terminal commands. I need to be able to search a given .sh file in a given location for a string, and when found, add a "#" to the start of that string and save the file back to it's original location.
Hello, I need some help searching through multiple files, finding a line and replacing that line. The line I am searching for is:
password key ******* 1222554
ultimately I want to be able to delete the numbers after the asterisks . my thoughts are to create a script that will search for the line password key ******* and delete it then replace it with password key ******* my files are located in /opt and they are all txt files.
I need a command to search a string in a file and then to convert the next string in the same line from hexadecimal to binary. I was able to put everything in capitals. The original file can be as such:
E 2 C 1 794 T ffff E 2 C 1 787
It is not always FFFF! I am trying to do this in a file at once, not reading line by line (using while).
I use my laptop both at home and at my job. At home it gives me the correct search line.
But when I am at the office I only get 1 search entry while if you boot in windows it gives you 3
(for example):
So this should be in /etc/resolv.conf search domain domain.com my.domain.com
It seems that this is not passed by the (Windows) dhcp server (Active Directory).
Is there any way that linux can detect depending on the network it is in that there are a few search domains added(for example like resolvconf does with ppp tunnels)?
Note: This differs from previous Mac-on-linux/windows questions because:
I don't mind buying the software if I can install it somehow, I'm asking about virtualization, not emulation.
Is there any way to run OSX programs on my linux machine? I'm thinking something like running virtualbox with an OSX install on it, which works great for Windows programs.
If it's not possible, why not? (Perhaps virtualbox can't pretend to be the Mac hardware, or there is some kind of licence violation).
$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?
I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...
I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,
But I would like to avoid this approach as there are a lot of places in my program where I would have to make this change. Can I perhaps rebuild the pthreads library on macos without affecting other apps ?
which does not work on the invisible directories (why?). When I used ".*" as wildcard it changed all (visible) files including the parent directory (the one I was currently working in which is the "dot") . I can change the invisible directories owner and group using dophin but how is it done from the command line?