07-26-2008
How to search file content
Hi folks,
What will be an easy and effective way searching file content? E.G I need to find a WORD or a PHRASE on a file? TIA
B.R.
satimis
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello,
i want to make a script to search the file contents in my home directory by a given date and output me the line that has the date... (10 Replies)
Discussion started by: psychobeauty
10 Replies
2. UNIX for Advanced & Expert Users
Hi,
I would appriciate if somebody can help me figure out how to search for all the *.xml file under a specific directory and subdirectroies (/home/username) and later search of content "<start>" inside the xml file returned by search.
-Lovin.V (2 Replies)
Discussion started by: lovi_v
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a problem when searching a file, the file containt with the following:
95671660:Jones:Sarah:45:sales manager
93272658:Smith:John:43:technical manager
98781987:Williams:Nick:35:computer officer
99893878:Brown:Sarah:12:electrician
95673456:Couch:David:26:chef... (3 Replies)
Discussion started by: elenatec
3 Replies
4. Shell Programming and Scripting
I am not sure if this is doable. I am trying to open and print the content of the file by replacing all instances fo perl to PERL . This is my code but it is
giving me the number count instead of the actual lines with changes.
open (PERLHISTORY, 'sample.txt') or die "The file sample.txt could... (3 Replies)
Discussion started by: jxh461
3 Replies
5. Shell Programming and Scripting
How can I search for a string in a filename? For example, I want to know if a filename (not the file contents) contains the string "test". (3 Replies)
Discussion started by: daflore
3 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I'm using rhel6. Using File Browser Nautilus 2.28.4 I could easily locate any file I'm interested in by it name.
I'd like to use this File Browser to locate the file name based on it content e.g. based on some word in the text file.
It doesn't work for me that way ...
My question: does... (0 Replies)
Discussion started by: susja
0 Replies
7. Shell Programming and Scripting
Have to read one file say sourcefile containing several words and having another folder containing several files.
Now read the first word of Sourcefile & search it into the folder consisting sevral files, and create another file with result. We hhave to pick the filename of the file in which... (3 Replies)
Discussion started by: mukesh.baranwal
3 Replies
8. Shell Programming and Scripting
I have some users in one unix system and i want to search some files with specific to user and then i want to find some content inside that file so can u help me how we can implement it?
File location is as below.
/pools/home_unix/cmadireddy/work/models/model/
cmadireddy is user name.
now... (6 Replies)
Discussion started by: lathigara
6 Replies
9. Shell Programming and Scripting
I have two files:
file 1:
hello.com neo.com,japan.com,example.com
news.net xyz.com, telecom.net, highlands.net, software.com
example2.com earth.net, abc.gov.uk
file 2:
neo.com
example.com
abc.gov.uk
file 2 are the search keys to search in file 1 if any of the search key is... (3 Replies)
Discussion started by: csim_mohan
3 Replies
10. Shell Programming and Scripting
Hi,
I have a file with complex data without delimiter, have requirement to fetch the specific record based on some charcters.
here is my file data
... (12 Replies)
Discussion started by: Riverstone
12 Replies
LEARN ABOUT DEBIAN
jifty::view::static::handler
Jifty::View::Static::Handler(3pm) User Contributed Perl Documentation Jifty::View::Static::Handler(3pm)
NAME
Jifty::View::Static::Handler - Jifty view handler for static files
DESCRIPTION
This is deprecated and is being port to a stack of plack middleware and plack::app::file
This class takes care of serving out static files for a Jifty application.
When fully operational, it will use an algorithm along the lines of the following:
* Static files are served out of a separate root * If static files go through apache:
* How do we merge together the N static roots? * If static files go through Jifty::Handler
* We need a flag to allow them to go through the dispatcher, too
* return "True" (304) for if-modified-since
* if the browser accepts gzipped data,
see if we have a cached gzipped copy
if so, send it
see if we have a marker indicating that gzip is a lose
if so, send uncompressed
gzip the content
send the gzipped content
* if the browser doesn't accept gzipped content
send the content uncompressed
new
Create a new static file handler. Likely, only the "Jifty::Handler" needs to do this.
roots
Returns all the static roots the handler will search
show $path
Handle a request for $path. If we can't find a static file of that name, return undef.
handle_request $path
An alias for "show"
file_path $path
Returns the system path for $path, searching inside the application's static root, loaded plugins' static roots, and finally Jifty's static
root. Returns undef if it can't find the file in any path.
template_exists $path
An alias for "file_path".
mime_type $path
Returns the mime type of the file whose path on disk is $path. Tries to use MIME::Types to guess first. If that fails, it falls back to
"File::MMagic".
send_file $path $mimetype
Print $path to STDOUT (the client), identified with a mimetype of $mimetype.
send_http_header [COMPRESSION, LENGTH, LAST_MODIFIED]
Sends appropriate cache control and expiration headers such that the client will cache the content. COMPRESSION is deprecated
send_not_modified
Sends a "304 Not modified" response to the browser, telling it to use a cached copy.
perl v5.14.2 2010-09-25 Jifty::View::Static::Handler(3pm)