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?
Last edited by Reboot; 05-07-2010 at 07:02 AM..
Reason: typo..
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)
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)
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)
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)
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)
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)
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 DEBIAN
pod::abstract::filter::find
Pod::Abstract::Filter::find(3pm) User Contributed Perl Documentation Pod::Abstract::Filter::find(3pm)NAME
Pod::Abstract::Filter::find - paf command to find specific nodes that contain a string.
DESCRIPTION
The intention of this filter is to allow a reduction of large Pod documents to find a specific function or method. You call "paf find
-f=function YourModule", and you get a small subset of nodes matching "function".
For this to work, there has to be some assumptions about Pod structure. I am presuming that find is not useful if it returns anything
higher than a head2, so as long as your module wraps function doco in a head2, head3, head4 or list item, we're fine. If you use head1 then
it won't be useful.
In order to be useful as an end user tool, head1 nodes (...) are added between the found nodes. This stops perldoc from dying with no
documentation. These can be easily stripped using: "$pa->select('/head1')", then hoist and detach, or reparent to other Node types.
A good example of this working as intended is:
paf find select Pod::Abstract::Node
AUTHOR
Ben Lilburne <bnej@mac.com>
COPYRIGHT AND LICENSE
Copyright (C) 2009 Ben Lilburne
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-01-03 Pod::Abstract::Filter::find(3pm)