Hi
Let say there is a file a.txt which contain number rows.
My intention is to find the number of occurences of a pattern. Let say the pattern is mdbase. then it should not count the occurences of mdbase1 or mdbase2 like this. When I tried to find it like
grep "/backup/surjya/mdbase"... (7 Replies)
Hi all,
I have a file with lines written somewhat like this.
aaaa
ccc
aa
linux
browse = no
xssxw
cdcedc
dcsdcd
csdw
police
dwed
dwd
browse = no
cdecec (2 Replies)
Hi
I have to write command that find the files/dirs in the directory with access date equal to timestamp. ie or to be more precise I need to find files which are not equal to given timestamp
drwxr-xr-x 2 oracle oinstall 4096 May 31 2007 tmp
so need to have something like
find . *... (2 Replies)
Hi everybody,
I have one requirment,
i have to get the particular server name from a file.
EX:
File contents will be like below..
$cat test.txt
HostAssignments->new("server1",
[
"PS_SERVER",
"REG_SERVER",
"PS_ORACLE",
"OM_G10_AUD",
"OM_G10_CAD",
"OM_G10_CHF",
... (3 Replies)
Hello Folks,
A wrapper takes an argument of file or directory name.
I want to allow paths that reside within the current directory only.
Can simply discard the paths like "/A" & "../" as they go outside the current by looking at the path beginning.
How to validate this one:
A/../../../b... (4 Replies)
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
QUESTION1:
How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed.
Contents of car.txt
CAR1_KEY0
CAR1_KEY1
CAR2_KEY0
CAR2_KEY1
CAR1_KEY10
CURRENT COMMAND LINE: WHERE VARIABLE CAR_NUMBER=1 AND KEY_NUMBER=1
grep... (1 Reply)
This may be stupid question but not able to solve it.
How to grep exact word and line along with it.
TEST:/u00/app/oracle/product/10.2.0/TEST:N
TEST2:/u00/app/oracle/product/10.2.0/ODS:N
TEST3:/u00/app/oracle/product/10.2.0/TEST:N
TEST4:/u00/app/oracle/product/10.2.0/ODS:N... (4 Replies)
Discussion started by: tapia
4 Replies
LEARN ABOUT HPUX
dteditorchange
DtEditorChange(library call) DtEditorChange(library call)
NAME
DtEditorChange -- change one or all occurrences of a string in a DtEditor widget
SYNOPSIS
#include <Dt/Editor.h>
Boolean DtEditorChange(
Widget widget,
DtEditorChangeValues *findChangeStrings,
unsigned int instanceToChange);
DESCRIPTION
The DtEditorChange function replaces the next occurrence of a string, all occurrences of the string, or the currently selected text in a
DtEditor widget with a replacement string. The string to search for and the value to change it to can be the last values entered in the
Find/Change dialog (see DtEditorInvokeFindChangeDialog(3)) or passed as arguments to DtEditorChange.
The search begins at the insertion cursor. If the string is not found by the time the end of the document is reached, the search continues
at the beginning of the document, stopping at the character before the insertion cursor.
The widget argument specifies the DtEditor widget ID.
The findChangeStrings argument specifies the string to change and the replacement value. If findChangeStrings is NULL, DtEditorChange uses
the last string specified in the Find and Change To fields of the Find/Change dialog. If the instanceToChange argument is DtEDITOR_CUR-
RENT_SELECTION, the Find field of DtEditorChangeValues is ignored.
If the instanceToChange argument is set to DtEDITOR_NEXT_OCCURRENCE, DtEditorChange replaces the next occurrence (relative to the insertion
cursor) of the find string. If this argument is set to DtEDITOR_ALL_OCCURRENCES, all instances of the find string are changed. If this
argument ia set to DtEDITOR_CURRENT_SELECTION, the Find field of DtEditorChangeValues, is ignored and the currently selected text is
replaced.
For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3).
For a complete definition of DtEditorChangeValues, see Dt/Editor.h - DtEditor(5).
RETURN VALUE
Upon successful completion, the DtEditorChange function returns True if the substitution occurred; otherwise, it returns False.
SEE ALSO
Dt/Editor.h - DtEditor(5), DtEditor(3), DtEditorFind(3), DtEditorInvokeFindChangeDialog(3).
DtEditorChange(library call)