Sponsored Content
Top Forums Shell Programming and Scripting Need some help with shell content scanner Post 302317836 by medic on Wednesday 20th of May 2009 05:28:42 AM
Old 05-20-2009
Thanks for the reply, I just tried your code but got some problems.

First I just tried:

Code:
find /home/userid*/public_html/ -size -2048k | xargs grep -Eil 'phrase1|phrase2' > /home/filepath/public_html/path/scans/scan_result.php

there I go a lot of error messages from grep that the files or folders don't exist.

I also tried it with -0 in the following way:

Code:
find /home/userid*/public_html/ -size -2048k | xargs -0 grep -Eil 'phrase1|phrase2' > /home/filepath/public_html/path/scans/scan_result.php

There the problem is that I get an error with xargs telling me that the xargs Argument is too long.
 

9 More Discussions You Might Find Interesting

1. Solaris

log file scanner

anyone know of a FREE logfile checker that they would recommend? looking to scan thru syslog, sulog, messages, etc... looking for security type related entries., thanks, brian (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

2. Shell Programming and Scripting

shell script to edit the content of a file

Hi I need some help using shell script to edit a file. My original file has the following format: /txt/email/myemail.txt /txt/email/myemail2.txt /pdf/email/myemail.pdf /pdf/email/myemail2.pdf /doc/email/myemail.doc /doc/email/myemail2.doc I need to read each line. If the path is... (3 Replies)
Discussion started by: tiger99
3 Replies

3. Shell Programming and Scripting

Shell script to remove some content in a file

How can I remove all data that contain domain e.g zzgh@something.com, sdd@something.com.my and gg@something.my in one file? so that i only have data without the domain in the file. Here is the file structure "test.out" more test.out 1 zzztop@b.com 1 zzzulll 1 zzzullll@s.com.my ... (4 Replies)
Discussion started by: Mr_47
4 Replies

4. Shell Programming and Scripting

Need get content of ELF shell script

I have a script file that file type is ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs) Now I want to get the contents of this file. How can I ? Any help me to get cotents of this file type? (2 Replies)
Discussion started by: karthickk02
2 Replies

5. Linux

micro film scanner

epson microfilm 500 scsi: Is there any way to make this work under linux ? I'm using pclinuxos, it shows the machine in the device panel as sg2 and lists the machine , so Im guessing the kernel knows what it is, but I can't view it as a scanner or capture or input device . What catagory does... (4 Replies)
Discussion started by: tom1200
4 Replies

6. Shell Programming and Scripting

Shell :copying the content from one file to another

I have a log containing the below lines. file1.log ----------- module: module1 module10 module2 module002 module9 moduleRT100.2.1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... (1 Reply)
Discussion started by: giridhar276
1 Replies

7. Red Hat

IP Scanner tool

Hey guys.. What is the best tool that can be used on Linux for IP scanning tool that can bring ping status, hostname, and any other open service. I wish I can find a tool like "The Dude" from Mikrotik, but that works only under Windows. Thanks (4 Replies)
Discussion started by: leo_ultra_leo
4 Replies

8. Ubuntu

Can Scanner be Initialized from the Terminal

Hi, somewhat of a newbie with Linux, although I have been at it for about three weeks now. Is there a way to wake up or initialize my scanner with a command in the terminal? (6 Replies)
Discussion started by: klrman
6 Replies

9. Hardware

Epson Scanner

Running Debian 8.5 on a Dell Laptop I have an Epson V39 scanner. Simple scan cannot detect it. Here is what I have: root@server1:/home/server1# sane-find-scanner # sane-find-scanner will now attempt to detect your scanner. If the # result is different from what you expected, first... (2 Replies)
Discussion started by: Meow613
2 Replies
MAKEKDEDOC(1)						     KDOC Documentation System						     MAKEKDEDOC(1)

NAME
makekdedoc -- Generates HTML documentation for KDE libraries using KDOC. SYNOPSIS
makekdedoc [--rule-file=<rulefile>] [--libdir=<libdir>] [--outputdir=<outputdir>] [--url=<url>] [--srcdir=<kdelibs src dir>] [--kdoc=<path to kdoc>] [<library>...] makekdedoc --help DESCRIPTION
This is a perl script that uses KDOC to generate documentation for kdelibs. A "rule" file is used to figure out the libraries to document, the order in which to document them and the libraries with which each one will be cross-referenced (eg kdeui uses -lkdecore). See "FILES" for more info. NOTE: The script assumes that you have already generated a Qt cross-reference using qt2kdoc[1]. OPTIONS
Defaults for each option are in square brackets. library... Specify the libraries to document. By default, all libraries defined by the rule file are documented. --outputdir <path>, -d <path> The directory where the output will be written. [`cwd`/srcdoc] --url <url>, -u <url> The base URL by which the generated docs will be accessed. For example, if your web server is configured to use $HOME/public_html for your home page, you could set the outputdir to $HOME/public_html/srcdoc and the url to http://myhost/~mylogin/srcdoc. [output dir] --rule-file <path>, -r <path> The path to the rule file to use for generating the documentation. [<srcdir>/kdoc.rules] --libdir <path>, -L <path> The directory in which the KDOC cross-reference files are stored. [$KDOCLIBS if set, otherwise $HOME/.kdoc] --kdoc <path>, -k <path> The path to the kdoc program. [kdoc] --kdocopt <options>, -p <options> Extra options to be passed to kdoc. --srcdir <path>, -b <path> The path to the kdelibs source, eg "$HOME/baseline/kdelibs". [`cwd`] --help, -h Quit with a usage message. EXAMPLES
makekdedoc --srcdir $HOME/baseline/kdelibs --outputdir $HOME/public_html/src/kdelibs/ --url "http://www.ph.unimelb.edu.au/~ssk/src/kdelibs" FILES
Rule file This file lists the directories in the source directory to document. It also lists the files to document from each directory, and the libraries with which to cross-reference the generated documentation. Here is a small example that documents two libraries and links the second to the first. # makekdedoc rule file doc_MODULES = eenie meenie # rules for eenie eenie_FILES = *.h eenie_LIBS = -lqt # rules for meenie meenie_FILES = a.h b.h meenie_LIBS = -leenie -lqt In this example, all files in "eenie/*.h" will be documented then two files from "meenie/" will be documented, in the order declared in "doc_MODULES". SEE ALSO
See kdoc[1] and qt2kdoc[1]. VERSION
makekdedoc $Revision: 1.2 $ AUTHOR
The script and this documentation were written by Sirtaj Singh Kang <taj@kde.org> in April 1999. 2.0a54 2000-10-10 MAKEKDEDOC(1)
All times are GMT -4. The time now is 08:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy