I've tried your solution but I only receive the first record and if I try to print the first field for all records (28, 29 and 30), I only receive the first one (28). The same if I try to print the 2nd field(the dates) I onle receive the first date.
like this:
The output should be:
Thanks again for the help
Hi All,
I've got some strange behaviour going on when trying to manipulate a file that contains spaces.
My input file looks something like this:
xxxxxxxxx,yyyy,sss sss sss,bbbbbbb
If I use awk:
When running from the command line I get:
sss sss sss
But when running from a... (7 Replies)
How to add record separator after certain lines?
I am faicing issue where some lines have result as successive line & some are not having. how can I add record separator after every record
here is example of data I have (line numbers are not present in data):
1. <enabled="true" name="dSuite1"... (7 Replies)
I have tried to use ">" as record separator, but it doesn't work.
I have tried this:
awk BEGIN{RS=">"}'{print $0}' input
output:
awk: BEGIN{RS=>}{print $0}
awk: ^ syntax error
awk BEGIN{RS="\>"}'{print $0}' input
awk: BEGIN{RS=\>}{print $0}
awk: ^ backslash not... (2 Replies)
I'm working on a different stage of a project that someone helped me address elsewhere in these threads.
The .docs I'm cycling through look roughly like this:
1 of 26 DOCUMENTS
Copyright 2010 The Age Company Limited
All Rights Reserved
The Age (Melbourne, Australia)
November 27, 2010... (9 Replies)
Hi,
I have a bunch of records within a directory where each one has this form:
(example file1)
1 2 50 90 80 90 43512 98 0909 79869 -9 7878 33222 8787 9090 89898 7878 8989 7878 6767 89 89 78676 9898 000 7878 5656 5454 5454
and i want for all of these files to be... (3 Replies)
How do I use single quotes as record separator in awk?
I just couldn't figure that out. I know how to use single quotes as field separator, and double quotes as both field and record separator ... (1 Reply)
I have data coming in the below format for each record
<?xml version="1.0" encoding="UTF-8" standalone="no"?><test_sox xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><testdetials>....</test_sox>
<?xml version="1.0" encoding="UTF-8" standalone="no"?><test_sox... (8 Replies)
Hi,
I'm using gawk to read a text file and count the sentences.
I want to use a record separator of a period, exclamation mark and a question mark.
The problem is that the file contains words like "Mr. Smith" so the periods in the appellation are tripping my record separator.
This is my... (12 Replies)
Discussion started by: 1Brajesh
12 Replies
LEARN ABOUT CENTOS
xmstringsegmentcreate
XmStringSegmentCreate(library call) XmStringSegmentCreate(library call)
NAME
XmStringSegmentCreate -- A compound string function that creates a compound string
SYNOPSIS
#include <Xm/Xm.h>
XmString XmStringSegmentCreate(
char * text,
XmStringTag tag,
XmStringDirection direction,
Boolean separator);
DESCRIPTION
This function is obsolete and exists for compatibility with previous releases. It can be replaced by using a combination of XmStringCompo-
nentCreate and XmStringConcat. XmStringSegmentCreate is a high-level function that assembles a compound string consisting of a font list
element tag, a direction component, a text component, and an optional separator component.
The function allocates space for the returned compound string. The application is responsible for managing the allocated space. The
application can recover the allocated space by calling XmStringFree.
text Specifies a NULL-terminated string to be used as the text component of the compound string.
tag Specifies the tag component to be associated with the text. The value XmFONTLIST_DEFAULT_TAG is for compatibility with previous
releases.
direction Specifies the direction of the text.
separator A value of False means the compound string does not have a separator at the end. A value of True, means a separator immediately
follows the text component.
RETURN
Returns a new compound string.
RELATED XmStringCreate(3).
XmStringSegmentCreate(library call)