05-07-2010
How to find a file with specific string inside it.
Hi ,
Is there any way i can find a file with specific word inside it.
For example if i want to find a file which has some text written inside it.
How would i form a command to search them?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I would like to know how to get a list of files that contain a specific string inside them.
Thanks (12 Replies)
Discussion started by: yoavbe
12 Replies
2. Shell Programming and Scripting
What I'm trying to do is perform a copy, well a ditto actually, on the results of a find command, but some inline string substitution needs to happen.
So if I run this code find ./ -name "*.tif" I get back these results.
.//1234567.tif
.//abcdefg.tif
Now the action from exec or xargs I... (2 Replies)
Discussion started by: myndcraft
2 Replies
3. UNIX for Dummies Questions & Answers
A developer of mine has this requirement - I couldn't tell her quickly how to do it with UNIX commands or a quick script so she's writing a quick program to do it - but that got my curiousity up and thought I'd ask here for advice.
In a text file, there are some records (about half of them)... (4 Replies)
Discussion started by: LisaS
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
this is the problem i'm facing i need a check some file having some word like gzip or tar ,the way i normally do is
grep gzip filenamethe thing is that i had some 1000 files to be checked is that the only way or can i customize it by some script ,i know there is some way ,but i need some... (4 Replies)
Discussion started by: malickhat
4 Replies
5. Shell Programming and Scripting
Hi,
I have following samp.txt file in unix.
samp.txt
01Roy2D3M000000
02Rad2D3M222222
.
.
.
.
10Mik0A2M343443
Desired Output
01Roy2A3M000000
02Rad2A3M222222
.
. (5 Replies)
Discussion started by: techmoris
5 Replies
6. Shell Programming and Scripting
How can I do this? Actually I have a file which contains a path
e.g.
/home/john/Music/hello.mp3
and I want to take only the filename (hello.mp3) So, I need to read the file from its end to its start till the character "/"
Is this possible?
Thanks, I am sure you'll not disappoint me here!
Oh,... (9 Replies)
Discussion started by: hakermania
9 Replies
7. Shell Programming and Scripting
I need assistance with following requirement, I am new to Unix.
I want to do the following task but stuck with file creation date(sysdate)
Following is the requirement
I need to create a script that will read the abc/xyz/klm folder and look for *.err files for that day’s date and then send an... (4 Replies)
Discussion started by: PreetArul
4 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have log file which rolls out every second which is as this.
HttpGenRequest - -<!--OXi dbPublish--> <created="2014-03-24 23:45:37" lastMsgId="" requestTime="0.0333"> <response request="getOutcomeDetails" code="114" message="Request found no matching data" debug="" provider="undefined"/>... (3 Replies)
Discussion started by: karthikprakash
3 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
I need to write a script to find all "*.sh" files in /home file system and if any string find "*.sh" files with the name vijay@gmail.com need to replace with vijay.bhaskar@gmail.com. I just understood about the find the command to search .sh files. Please help me on this.
find / -name... (3 Replies)
Discussion started by: bhas85
3 Replies
LEARN ABOUT SUSE
gnome-search-tool
gnome-search-tool(1) General Commands Manual gnome-search-tool(1)
NAME
gnome-search-tool - the GNOME Search Tool
SYNOPSIS
gnome-search-tool [options]
or select Search for Files... from a Main Menu or from the Places menu in a Menu Bar
DESCRIPTION
GNOME Search Tool is a utility for finding files on your system. To perform a basic search, you can type a filename or a partial filename,
with or without wildcards. To refine your search, you can apply additional search options.
GNOME Search Tool uses the find, grep, and locate UNIX commands. The case sensitivity of the search depends on your operating system. For
example, on Linux, the find, grep, and locate commands support the -i option, so all searches are case-insensitive.
For full documentation see the GNOME Search Tool online help.
OPTIONS
--help Show help message
--named=STRING
Set the text of "Name contains" search option
--path=PATH
Set the text of "Look in folder" search option
--sortby=VALUE
Sort files by one of the following: name, folder, size, type, or date
--descending
Set sort order to descending, the default is ascending
--start
Automatically start a search
--contains=STRING
Select and set the "Contains the text" search option
--mtimeless=DAYS
Select and set the "Date modified less than" search option
--mtimemore=DAYS
Select and set the "Date modified more than" search option
--sizemore=KILOBYTES
Select and set the "Size at least" search option
--sizeless=KILOBYTES
Select and set the "Size at most" search option
--empty
Select the "File is empty" search option
--user=USER
Select and set the "Owned by user" search option
--group=GROUP
Select and set the "Owned by group" search option
--nouser
Select the "Owner is unrecognized" search option
--notnamed=STRING
Select and set the "Name does not contain" search option
--regex=PATTERN
Select and set the "Name matches regular expression" search option
--hidden
Select the "Show hidden and backup files" search option
--follow
Select the "Follow symbolic links" search option
--mounts
Select the "Exclude other filesystems" search option
AUTHOR
GNOME Search Tool was originally written by George Lebl (<jirka@5z.com>). Version 2 was written by Dennis M. Cranston (<den-
nis_cranston@yahoo.com>).
This manual page was originally written by Jochen Voss <voss@mathematik.uni-kl.de>. Version 2 was written by Dennis M. Cranston (<den-
nis_cranston@yahoo.com>).
SEE ALSO
find(1), locate(1), grep(1)
gnome-utils 2.27.1 March 16 2009 gnome-search-tool(1)