You can do this within ksh/bash if you wish:-
Maybe someone would care to neaten this, but for a large file, it saves spawning multiple awk commands if you are reading it through a shell script.
Hi ,
I am required to view the fixed postion file very often . I am looking for the utility like this
if the file has a one or multile line
abcdefghijklmnopqr
Utility should make my file look like this
12345678910111213141516--------------------------
abcdefghijk l m n o p q r ... (4 Replies)
Hi,
I have following format in file aaa with content below, and would like to seek help from forumer about how to change and swap the position on 2nd field.
5874957|901125|
95874960|650614|
95874966|870308|
901125 to be changed as 25-11-1990 for eg
Can someone help please ?? :)
... (6 Replies)
Hello everybody,
I have a file like this : "window 1 truck 3 duck 2... fire 1... etc..." and I would like to print the following number of a word I am searching for. (For example here, if I search for the word "fire", I will print "1")
Thank you for your help ! (7 Replies)
Hi.
If I have files with names like abcd.20080625.1234.abc.XYZ abcd.20080625.1234.abc.XYZW
how can I get the XYZ or XYZW part? is there something like an Index() function but in reverse order?
I was thinking that if I can get the position of the last dot... (7 Replies)
Hi All,
Can anyone help me please,
I have a word like below.
6,76
I want to read this word and check if it has "," (comma) and if yes then i want to replace it with "." (dot). That means i want to be changed to 6.76
If the word doesnot contain "," then its should not be changed.
Eg.
... (6 Replies)
hi ,
i am having a file
Full_ARTMAS_20110510152425.xml in my local directory. i wanted to extract the character at the 35143546 th position at line 1 of this file.Can any body help me how to do it???
regards
Anjali (2 Replies)
i want to find the position of a character in a line , the first position, last, 5th occurence position , i ve tried grep -n , and expr index but they dont fit the bill. Please let me know if there is any other alternative (2 Replies)
Hi,
i want find the character '-' in a file from position 284-298, if it occurs i need to replace it with 'O ' for the position in the file. How to do that using SED command.
thanks in advance,
Sara (9 Replies)
I am trying to find/grep the 5th and 6th position character (TX) of a word in a file. I tried to do
grep "....TX" file
The output gives me everything in the file with TX in it. I only need the output with the TX in the 5th and 6th position of the word. Any idea
Example:
test1 car... (5 Replies)
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
LEARN ABOUT CENTOS
xmtextfindstring
XmTextFindString(library call) XmTextFindString(library call)
NAME
XmTextFindString -- A Text function that finds the beginning position of a text string
SYNOPSIS
#include <Xm/Xm.h>
Boolean XmTextFindString(
Widget widget,
XmTextPosition start,
char *string,
XmTextDirection direction,
XmTextPosition *position);
DESCRIPTION
XmTextFindString locates the beginning position of a specified text string. This routine searches forward or backward for the first occur-
rence of the string starting from the given start position. If it finds a match, the function returns the position of the first character
of the string in position. If the match string begins at the current position, this routine returns the current position.
widget Specifies the Text widget ID.
start Specifies the character position from which the search proceeds. This is an integer number of characters from the beginning of
the text buffer. The first character position is 0 (zero).
string Specifies the search string.
direction Indicates the search direction. It is relative to the primary direction of the text. The possible values are
XmTEXT_FORWARD
The search proceeds toward the end of the text buffer.
XmTEXT_BACKWARD
The search proceeds toward the beginning of the text buffer.
position Specifies the pointer in which the first character position of the string match is returned. This is an integer number of charac-
ters from the beginning of the buffer. The first character position is 0 (zero). If the function returns False, this value is
undefined.
For a complete definition of Text and its associated resources, see XmText(3).
RETURN
Returns True if a string match is found; otherwise, returns False.
RELATED XmText(3) and XmTextFindStringWcs(3).
XmTextFindString(library call)