General :: How To Search File At Server
Jul 16, 2010
1. i want to make backup database(use mysqldump)
2. copy from server(use linux-server) to client PC (use linux- ubuntu 9.0)..
3. before that i want to search that DB file using terminal..
4. bcoz i dont know where the files are located
View 2 Replies
ADVERTISEMENT
Nov 13, 2010
for example we search a file for a certain keyword..is there any application available which will enable us to search for a single keyword in all the files within the folder ?i want to search for a keyword in about 1000 files..if i do it manually it will take loads of time..
View 6 Replies
View Related
May 5, 2010
I need to create a report ,
The data is spread across two files in below format,
File 1
=========
<Class Name1>
Ph: 001
Place: place001
</class>
[Code]....
View 4 Replies
View Related
Jan 27, 2011
I have file which consists of many files with their path,i need to check for the file exists in the given path,how to check?
View 12 Replies
View Related
Jul 27, 2009
I have a doubt, i have a file which contains around 3000 elements, now i want to search for an element in that file.what will be the Efficient way of searching ? without consuming much memory and time..
1) is this efficient if i take all the 3000 elements from file to a list or array and sort them and search ?
2) or is it efficient to search directly inside the file ??
Can anyone please suggest some algorithms for an efficient way to search in this case ?I am using C for coding..
View 14 Replies
View Related
Jan 19, 2010
I am searching for Class declaration on a site with hundreds of PHP files, how can I do this in the current folder and subfolders using GREP?
I tested cding to the folder and then something like
grep -r 'class MyClass' *.php
View 5 Replies
View Related
Dec 19, 2010
total newb here. call me a script kiddie if you want but here is what i need to do and what i have.
need to:search a hidden log file for a specific string, find what comes after that part, and then output the result to a variable or something that can be used by an application or other script to carry out further actions.
View 3 Replies
View Related
Nov 19, 2009
The requirement was to write a shell script for a cron job set for every two hours for all days.The Script has to scan log files (*.log) for the logs posted only for the last two hours.... and append them in a new file...I am clueless abt how to scan/compare based on time stamp seen in above logs.
View 2 Replies
View Related
Jul 7, 2010
I used locate cmd to search file abc.txt (for example) as I didn't know in which directory it would be present and couldn't find it. But when I did find . -name abc.txt, it traced the file, luckily the file was in the same directory. I am wondering how find was able to search abc.txt and locate not. How these two are behavinb differently? Usually I use locate when I don't know the path to the parent dir.
View 8 Replies
View Related
Jun 24, 2011
I want to search in my apache log, for events which have occurred say between 11:00 AM to 2:00 PM. I have got few scripts/commands but they are not conclusive, some of then are trying to do an exact match(awk) and for some i am just getting the pattern wrong (eGrep)
I am running RHEL.
Apache log eg:
================================================================
10.92.120.129 - - [24/Jun/2011:01:29:07 -0500] "GET /favicon.ico HTTP/1.1" 302
================================================================
now if i want to find out the logs from 1 PM to 2 PM
some example i had was:
cat <apache.log> | grep -E '07/Apr/20110[1-2]:[0-5][0-9]|02:00)'
small script in which i can pass the start time and end time range, and it should give an output of the rows which fall under that time range.
View 5 Replies
View Related
Jan 20, 2010
I want to search file excluding the NFS ...find / -mount -name 'filename' restricts the search only in the root disc partition,but the file can be in other partitions alsoIs there any way to exclude the NFS only.
View 2 Replies
View Related
Sep 15, 2010
Im new to the forum and fairly new to Linux as well. my apologies if this is posted in the wrong section. My problem is How can you search for a file in multiple machines (like a server farm) ? For example i log onto machine num1 and want to search for a file named "xxx.yyy" which may be in one of 4 machnies. What i do right now is manually log into each machine and run the find command. However i have heard that it is possible to do it via a couple of simple commands. I have looked into pssh and cssh as well as ssh tunneling (along with public key authentication to stop the machines requesting a password every time i log in) and unfortunately i was unable to find an answer.
View 4 Replies
View Related
Aug 2, 2011
I have a file called Regions.ini that looks like this:
Code:
[Granite]
RegionUUID = 54ab7cd2-0e70-49b7-8020-8dbeb84c08d0
Location = 9991,10007
InternalAddress = 0.0.0.0
InternalPort = 9001
AllowAlternatePorts = False
ExternalHostName = 71.171.21.9
[Syenite]
RegionUUID = 8fc56fdd-0afd-4074-9432-0ae8f42b799f
Location = 9992,10007
InternalAddress = 0.0.0.0
InternalPort = 9000
AllowAlternatePorts = False
ExternalHostName = 71.171.21.9
What I need to do is find out what the IP address is after "ExternalHostName ="
After that I will need to compare that IP to whatismyip and if it's different then replace it but that is easy to do with sed. I just can't figure this simple hurdle out.
View 12 Replies
View Related
Mar 10, 2010
If i am in the root directory and i need to search for a specific file in the sysconfig directory, is there any way to search this directory for a file?
View 10 Replies
View Related
Nov 23, 2010
I've got a big text file in which I know have probably made some typos (LaTeX). Sometimes I rewrite sentences several times and then end up with double pieces like "the the" or "is is" without noticing it. Most spell checkers that I can use in LaTeX are very basic so they do not notice these grammar errors. Is there a way that I can search for these repetitions by hand using sed or awk or something along these lines? Is there an app for that?
View 3 Replies
View Related
Mar 30, 2011
I am using find some_dir -name "*.some_ext" | xargs -l10 grep "some_expr"
to find files in folder, but I just want to display the file name but not all file content. Any solution?
View 2 Replies
View Related
Jan 11, 2010
Is it possible to locate the Firefox file that retains "Search" history (not particularly "Browser" history)?I have lost a hardcopy list of authors and titles of books/ebooks that I search the web for. However, most of the time when I would enter a name or title a drop down list would have that entry I wanted, and I could just click on it. That drop down list is what I am calling "Search" history.
View 8 Replies
View Related
May 18, 2011
I have a file that contains 5 fields and anothen one with two I want to take the value from user and search file1 and if the value exists then write in file2 to the $2 to the line that $1=value
file 1
1:fsdfsd:g:33:fsdf
2:yytgdcf:a:3:sgd
3:tttt:g:67:yujhggfg
[code].....
View 2 Replies
View Related
Feb 21, 2011
I need a shell script which will search and remove a javascript from all htm, html and php file.
Code:
<script type="text/javascript"> if (navigator.cookieEnabled) {var user = getCookie("seostop");if (user !=1){winchristop();setCookie("seostop", "1", 7,
[code]....
View 14 Replies
View Related
Mar 6, 2010
To search a string pattern in all files in a directory and subdirectories, I am using;
Code:
grep -R "myclass::my-func(" mydirectory/
Now I want grep, to search in only specific file types say *.cc. Please help me. I have read manual of grep, but could not deduce any hint.
Best Regards.
View 7 Replies
View Related
Feb 3, 2011
Suppose I have a pair of files containing lists. The first file is called contigs.txt and it contains a list that looks like this:
Code:
Contig822
Contig826
[code]...
View 5 Replies
View Related
Dec 25, 2010
when loggin as a normal user and search for a file passwd under /etc. i get few errors with permission denied.how to ignore this permission denied errors.
csh hostname 109 % find . -name passwd
find: ./lvm/backup: Permission denied
find: ./lvm/archive: Permission denied
[code]....
View 4 Replies
View Related
Jan 19, 2010
I need to search a text file for a string of numbers which are different lengths, and always are between number=" and " like:
number="1234567890"
number="22390"
I need to grab those numbers and pipe each one to a line in a file. I've already tried something with awk and that didn't seem to work.
View 10 Replies
View Related
Feb 26, 2010
When i type in a key word of a file that is certainly on my computer, no results are returned. I remember a while back a certain symbol had to be enetered in order to do the search.
Code:
Could not launch the KDE Help Center:
KDEInit could not launch 'susehelp'.:
[code]...
View 2 Replies
View Related
Jun 15, 2011
For some reason Ubuntu's built-in file search app doesn't find the file I'm looking for sometimes. My 10.10 build has been running excellently for some time now and haven't experienced any problems but this is a wierd one. If I use another app like Catfish it usually finds the sought file, but sometimes it gives a fatal error and stops working. Others have had this problem with Catfish, too, so I'm looking for another reliable file or folder search app. I've went thru what I could find in the Software Center but haven't found anything really good. I need an app that'll search for hidden files or folders on the whole PC
View 5 Replies
View Related
Feb 3, 2010
How to search for a file? I am looking for a file in a directory /shared/domain...This also contains many sub directories..I need a script which will let me know the location of my log file myapps.log.what is the script ?Can it be made in one line ...because I just want to run ...don't want to save the script.
View 14 Replies
View Related
Jun 2, 2010
i want to search some key words in some pdf files grep myword ~/test.pdf that command can't work! grep command can't search pdf file??
View 1 Replies
View Related
Feb 4, 2009
I have an issue searching for files on my linux system - I cant do it.I have tried whereis, and locate, and even catfish...which sucks. I just want to pick a folder, right click, and search it for what I want... like we would in BillBlows XP. Is there a program that will do that? Or perhaps a file commander?
View 5 Replies
View Related
Jun 14, 2010
Here you can find the file signature table:http://www.garykessler.net/library/file_sigs.html
Is there any way for me to search through files for a file signature in HEX format?
View 3 Replies
View Related
Jul 14, 2011
I am looking for a one liner to search for a string in file(s) which are in a tar ball (.tar.bz2 in my case)
Code:
-bash-3.2$ tar -tjf /var/log/ABC/07142011-1412.tar.bz2
var/log/ABC/07142011-1412/
var/log/ABC/07142011-1412/live_hosts.txt
var/log/ABC/07142011-1412/all_hosts.txt
var/log/ABC/07142011-1412/LOGS.txt
How can I recursively look inside all the txt files in this tar file ?
View 10 Replies
View Related