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)
Hello all,
I have a script which picks up a series of large numbers, each of which are actually amalgamations of a series of other numbers. Unfortunately there are no separator characters so I can't use awk -F. I am looking for a way of splitting them into variables according to their... (4 Replies)
Hi,
I have the following data in a flat file:
abcd_efgh_ijkl_20080522.dat|20080602222508|1357
abcd_efgh_ijkl_20080522.dat|20080602222508|1357
abcd_efgh_ijkl_20080522.dat|20080602222508|1357
I need to check the no. of occurence of "|" (pipe) on each line and the output should look like below:... (4 Replies)
I want to insert space in 7th position of all the lines usign vi editor or sed command
Input file
12345689010
abcdefghijk
.
.
Output file
123456 89010
abcdef ghijk
.
. (7 Replies)
Hi,
Can some one guide me to identify the position of a character using index in UNIX.
I have a record like "17/11/2010 15:16:39;reject;10.44.48.65;daemon alert; src: 10.44.48.112; dst: 172.21.52.88" . I need to identify the value which comes after _src:_ (_ denotes space).
I am able to... (15 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)
Hi All, here's a question from newbie
I have a data like this, which set of small DNA sequences separated by new line
GAATCCGGAAACAGCAACTTCAAANCA
GTNATTCGGGCCAAACTGTCGAA
TTNGGCAACTGTTAGAGCTCATGCGACA
CCTGCTAAACGAGTTCGAGTTGAANGA
TTNCGGAAGTGGTCGCTGGCACGG
ACNTGCATGTACGGAGTGACGAAACCI... (6 Replies)
data.txt
{
"auth_type": "role",
"default_attributes": {
"sudoers": {
i need to know how manyspaces are before an actual character in each line of a file.
for example. in the above data.txt,
There are 0 spaces leading up to {
There are 4 spaces leading up to the... (7 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
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)