Hi Folks,
I have a file with all fields defined by byte position, but any field can be empty so I cannot print lines based on a search of specific columns. I need to print all lines of this file where the string of two characters at byte position 100-101 contains the number 27. Any ideas?
... (4 Replies)
Hi,
I need to add Pipe (|) at 5th and 18th position of all records a file. How can I do this?
I tried to add it at 5th position using the below code. It didnt work. Please help!!!
awk '{substr($0,5,1) ~ /|/}{print}' $input_file > $temp_file (1 Reply)
Hi,
I want to read the file from nth line (where n is an integer) to until I encounter @ char.
Can any one please help me how to do this?
Thanks. (3 Replies)
Hi guyz i want to know nth position of character in string. For ex.
var="UK,TK,HK,IND,AUS"
now if we see 1st occurance of , is at 3 position, 2nd at 6,..4th at 13 position.
1st position we can find through INDEX, but what about 2nd,3rd and 4th or may be upto nth position. ?
In oracle we had... (2 Replies)
hi guys,
i want command or script to display the content of file from 2nd position to last but one position of a file
abcdefghdasdasdsd
123,345,678,345,323
434,656,656,656,656
678,878,878,989,545
4565656667,65656
i want to display the same above file without first and... (2 Replies)
Discussion started by: hemanthsaikumar
2 Replies
9. Post Here to Contact Site Administrators and Moderators
In file, we have millions of records each of 1000 in length. And at specific position say 800 there is a space, we need to replace it with Character X if the ID in that row starts with 123.
So far i have used the below which is replacing space at that position to X but its not checking for... (3 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 OSF1
xmtextfieldpostoxy
XmTextFieldPosToXY(3X)XmTextFieldPosToXY(3X)NAME
XmTextFieldPosToXY - A TextField function that accesses the x and y position of a character position
SYNOPSIS
#include <Xm/TextF.h>
Boolean XmTextFieldPosToXY (widget, position, x, y)
Widget widget;
XmTextPosition position;
Position *x;
Position *y;
DESCRIPTION
XmTextFieldPosToXY accesses the x and y position, relative to the upper left corner of the TextField widget, of a given character position
in the text buffer. Specifies the TextField widget ID Specifies the character position in the text for which the x and y position is
accessed. This is an integer number of characters from the beginning of the buffer. The first character position is 0. Specifies the
pointer in which the x position, relative to the upper left corner of the widget, is returned. This value is meaningful only if the func-
tion returns True. Specifies the pointer in which the y position, relative to the upper left corner of the widget, is returned. This
value is meaningful only if the function returns True.
For a complete definition of TextField and its associated resources, see XmTextField(3X).
RETURN VALUE
This function returns True if the character position is displayed in the TextField widget; otherwise, it returns False, and no x or y value
is returned.
SEE ALSO XmTextField(3X)XmTextFieldPosToXY(3X)