03-13-2008
The find didn't work because of the -iname argument
10 More Discussions You Might Find Interesting
1. Programming
Hi,
I need to find out a particular pattern from a directory, for example say X.
The X directory contains 10 c files, and it has subdirectory called Y, and Y has 20 c files within it.
Now I have to find out the pattern only from parent directory X not from sub directory Y.
I have... (4 Replies)
Discussion started by: sarwan
4 Replies
2. UNIX for Dummies Questions & Answers
Hey, I have a question about using grep and find together to locate all C programs in a directory containing certain words and open the vi editor with each file. I'm not sure how to do this in one command (as in one line). I know find has a "-exec" option that can call vi, but how do you combine... (1 Reply)
Discussion started by: MEllis5
1 Replies
3. UNIX for Dummies Questions & Answers
HI
what is the difference between find and grep
if I want to find all the files from different directories which contain "ORA" error, and the line number in each file which has ORA error
should I use pipeline ?
thanks
James (3 Replies)
Discussion started by: james94538
3 Replies
4. Shell Programming and Scripting
Hey,
I have a Find command like:
find $searchDir -type f
and this returns a list of files under the directory, which is all good, but, I want to filter that search for files that contain the string "people"
I tried something like:
find $searchDir -type f -exec grep "people" '{}'... (2 Replies)
Discussion started by: beefeater267
2 Replies
5. UNIX for Dummies Questions & Answers
:wall:Hello, Im having trouble using the find and grep combined into one command. I have the following:
find filname* -mmin -60 grep "ERROR" filename
I want to find the "ERROR" text in any file created in the last hour in the current directory. I dont know how to end the command. If I leave... (3 Replies)
Discussion started by: aispg8
3 Replies
6. UNIX for Dummies Questions & Answers
I have a file called 'test.txt' that contains alphanumeric charecters.
The file contains the word 'SBE' followed by other alphabets many times. For example, the file will contain: SBE334GH and also will have SBE77Y8I.
When i do grep 'SBE*' test.txt - it outputs the entire file.
Can you... (5 Replies)
Discussion started by: DallasT
5 Replies
7. Shell Programming and Scripting
Hi all ,
I'm new to unix
I have a checked project , there exists a file called xxx.config .
now my task is to find all the files in the checked out project which references to this xxx.config file.
how do i use grep or find command . (2 Replies)
Discussion started by: Gangam
2 Replies
8. UNIX for Dummies Questions & Answers
How can I recursively find all files in a directory and print out the file and first line number of any text blocks that match the below cases?
This would seem to involve find, xargs, *grep, regex, etc.
In summary, I want to find so-called empty "try-catch blocks" that do not contain code... (0 Replies)
Discussion started by: lifechamp
0 Replies
9. Shell Programming and Scripting
Is it possible with find and Grep to search files under a directory and display only files that have multiple occurrence of a string (In AIX)? Anybody has an example code? If not what are the other options?
Thanks in advance. (7 Replies)
Discussion started by: J_ang
7 Replies
10. UNIX for Beginners Questions & Answers
Hi,
On AIX,
We have several moveplan.xml files in different folders.
I run:
find /u0/appl_top/ -name moveplan.xml -exec grep -i Passphrase {} \;
And it returns
<name>Custom Identity Keystore Passphrase File</name>
<name>Custom Trust Keystore Passphrase File</name>
... (4 Replies)
Discussion started by: big123456
4 Replies
LEARN ABOUT REDHAT
sgmlnorm
OSGMLNORM(1) osgmlnorm OSGMLNORM(1)
NAME
osgmlnorm - An SGML System Conforming to International Standard ISO 8879 -- Standard Generalized Markup Language
SYNOPSIS
osgmlnorm [-Cdemnv] [-bbctf] [-ccatalog] [-Ddir...]
[-iname...] [-wwarning...] [sysid...]
DESCRIPTION
osgmlnorm prints on the standard output a normalized document instance for the SGML document contained in the concatenation of the entities
with system identifiers [sysid...].
When the normalized instance is prefixed with the original SGML declaration and prolog, it will have the same ESIS as the original SGML
document, with the following exceptions:
* The output of osgmlnorm does not protect against the recognition of short reference delimiters, so any USEMAP declarations must be
removed from the DTD.
* The normalized instance will use the reference delimiters, even if the original instance did not.
* If marked sections are included in the output using the -m option, the reference reserved names will be used for the status keywords even
if the original instance did not.
* Any ESIS information relating to the SGML LINK feature will be lost.
The normalized instance will not use any markup minimization features except that:
* Any attributes that were not specified in the original instance will not be included in the normalized instance. (Current attributes will
be included.)
* If the declared value of an attribute was a name token group, and a value was specified that was the same as the name of the attribute,
then the attribute name and value indicator will be omitted. For example, with HTML osgmlnorm would output <DL COMPACT> rather than <DL
COMPACT="COMPACT">
The following options are available:
-bbctf Use the BCTF with name bctf for output.
-cfile Use the catalog entry file file.
-C This has the same effect as in onsgmls(1).
-d Output a document type declaration with the same external identifier as the input document, and with no internal declaration subset.
No check is performed that the document instance is valid with respect to this DTD.
-Ddirectory
Search directory for files specified in system identifiers.
This has the same effect as in onsgmls(1).
-e Describe open entities in error messages.
-iname This has the same effect as in onsgmls(1).
-m Output any marked sections that were in the input document instance.
-n Output any comments that were in the input document instance.
-r Raw output. Don't perform any conversion on RSs and REs when printing the entity. The entity would typically have the storage man-
ager attribute records=asis.
-v Print the version number.
-wtype Control warnings and errors according to type. This has the same effect as in onsgmls(1).
SEE ALSO
onsgmls(1)
AUTHORS
James Clark, Ian Castle <ian.castle@looksystems.co.uk>.
OpenJade January 2002 OSGMLNORM(1)