I need a script for...
how to find a position of column data and print some string in the next line and same position
position should find based on *HEADER8* in text
for ex: ord123 abs 123 987HEADER89 test234
ord124 abc 124 987HEADER88 test235
... (1 Reply)
Hi All,
My requisite is to search for the string "0108"(which is the year and has come in the wrong year format) in a particular column say 4th column in a tab delimited file and then replace it with 2008(the correct year format) in the same position where 0108 was found..The issue is the last... (15 Replies)
Hi All,
My requisite is to search for the string "0108"(which is the year and has come in the wrong year format) in a particular column say 4th column in a tab delimited file and then replace it with 2008(the correct year format) in the same position where 0108 was found in the same file..The... (27 Replies)
Suppose i have a file which contains thousands of records. e.g adjgmptjadmwpgjmwmd i need to replace the string from 3rd to 8th position using awk script in entire file. And also the positions will be passed as parameter. (3 Replies)
Trying to use sed - but having no luck.
I have a text file - I want to replace whatever character is in position 106, 157 and 237 w/ the string "xxx". Want this change for all lines w/in that text file.
I'm open to using awk or whatever command would be best for replacing characters based... (5 Replies)
Hi
I am looking for a particular string in a file.If the string exists, then I want to replace another string with some other text.Once replaced, search for the same text after that character position in the file. :wall:
E.g: Actual File content:
Hello
Name: Nitin Raj
Welcome to Unix... (4 Replies)
Hi All,
I have a file that I would like to search for data and replace other data by record position number:
Example search..
search for "CLARK KENT" and replace Amt data "000025" with "000155"???
I'm able to search and replace unique data but, came to a stump when wanting to replace data... (11 Replies)
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Hi,
I am unable to find the right option to extract the data in the fixed width file.
sample data
abcd1234xgyhsyshijfkfk
hujk9876 io xgla
loki8787eljuwoejroiweo
dkfj9098 dja
Search based on position 8-9="xg" and print the entire row
output
... (4 Replies)
Sample txt file :
OK00001111112|
OK00003443434|skjdaskldj
OK32812983918|asidisoado
OK00000000001|
ZM02910291029|sldkjaslkjdasldjk
what would be the shell script to figure out the blank space (if any) after the pipe sign? (4 Replies)
Discussion started by: chatwithsaurav
4 Replies
LEARN ABOUT OSF1
xmtextfindstringwcs
XmTextFindStringWcs(3X)XmTextFindStringWcs(3X)NAME
XmTextFindStringWcs - A Text function that finds the beginning position of a wide character text string
SYNOPSIS
#include <Xm/Text.h>
Boolean XmTextFindStringWcs (widget, start, wcstring, direction, position)
Widget widget;
XmTextPosition start;
wchar_t *wcstring;
XmTextDirection direction;
XmTextPosition *position;
DESCRIPTION
XmTextFindStringWcs locates the beginning position of a specified wide character text string. This routine searches forward or backward
for the first occurrence of the string, starting from the given start position. If a match is found, the function returns the position of
the first character of the string in position. Specifies the Text widget ID. Specifies the character position from which the search pro-
ceeds. This is an integer number of characters from the beginning of the text buffer. The first character position is 0. Specifies the
wide character search string. Indicates the search direction. It is relative to the primary direction of the text. The possible values
are: The search proceeds toward the end of the buffer. The search proceeds toward the beginning of the buffer. Specifies the pointer in
which the first character position of the string match is returned. This is an integer number of characters from the beginning of the buf-
fer. The first character position is 0. If the function returns False, this value is undefined.
For a complete definition of Text and its associated resources, see XmText(3X).
RETURN VALUE
Returns True if a string match is found; otherwise, returns False.
SEE ALSO XmText(3X), XmTextFindString(3X)XmTextFindStringWcs(3X)