Hi,
How to replace any character in a file with a newline character using sed ..
Ex:
To replace ',' with newline
Input:
abcd,efgh,ijkl,mnop
Output:
abcd
efgh
ijkl
mnop
Thnx in advance.
Regards,
Sasidhar (5 Replies)
Hello,
I'm trying to write a method which will return the extension of a file given the file's name, e.g. test.txt should return txt. I'm using C so am limited to char pointers and arrays. Here is the code as I have it:
char* getext(char *file)
{
char *extension;
int i, j;... (5 Replies)
I am trying to do some thing like this ..
In a file , if pattern found insert new pattern at the begining of the line containing the pattern.
example:
in a file I have this.
gtrow0unit1/gctunit_crrownorth_stage5_outnet_feedthru_pin
if i find feedthru_pin want to insert !! at the... (7 Replies)
hello everybody!
i have aproblem! i dont know how to concatenate const char* with char
const char *buffer;
char *b;
sprintf(b,"result.txt");
strcat(buffer,b);
thanx in advance (4 Replies)
Hi
I m having ifconfig -a o/p like
sbanlab1:ksh# ifconfig -a | egrep "flags|inet" | awk -F' ' '{print $1,$2}'
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL>
inet 127.0.0.1
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL>
inet 127.0.0.1
bge0:... (1 Reply)
Compiling xpp (The X Printing Panel) on SL6 (RHEL6 essentially):
xpp.cxx: In constructor ‘printFiles::printFiles(int, char**, int&)’:
xpp.cxx:200: error: invalid conversion from ‘const char*’ to ‘char*’
The same error with all c++ constructors - gcc 4.4.4.
If anyone can throw any light on... (8 Replies)
Hi experts , im new to Unix,AWK ,and im just not able to get this right.
I need to match for some patterns if it matches I need to print the next few words to it.. I have only three such conditions to match… But I need to print only those words that comes after satisfying the first condition..... (2 Replies)
Pointers are seeming to get the best of me and I get that error in my program.
Here is the code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define REPORTHEADING1 " Employee Pay Hours Gross Tax Net\n"
#define REPORTHEADING2 " Name ... (1 Reply)
The intended result should be :
PDF converters
'empty line'
gpdftext and pdftotext?xml version="1.0"?>
xml:space="preserve"><note-content version="0.1" xmlns:/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size">PDF converters
gpdftext and pdftotext</note-content>... (9 Replies)
Hi I have a file where i want to remove a char before a specific pattern.
exp:
CREATE TABLE
(
A,
B,
C, ----comma needs to be removed
)AS SELECT
A,
B,
C, ----comma needs to be removed
FROM TABLE.
So i want to delete the comma(,) after the C both ways.Pattern can be... (11 Replies)
Discussion started by: raju2016
11 Replies
LEARN ABOUT SUNOS
wnn_hinsi.data
wnn_hinsi.data(4) File Formats wnn_hinsi.data(4)NAME
wnn_hinsi.data - Wnn6 part of speech administration file
SYNOPSIS
/usr/lib/locale/ja/wnn/ja/hinsi.data
DESCRIPTION
hinsi.data is a file that contains information required to administer the main parts of speech.
Numbers are allocated in the order of the parts of speech and composite parts of speech defined in hinsi.data. These numbers are used
when creating dictionary files and part of speech files, when looking up part of speech names by numbers from the client and server, and
looking up the parts of speech in composite parts of speech. Numbers are assigned in ascending order starting at 0.
Only the following operations are allowed for this file: appending new parts of speech or composite parts of speech to the end of the file
and replacing lines consisting of only "@" with definitions of parts of speech or composite parts of speech. NEVER DELETE ENTRIES. "@" is
used to reserve lines in the file in advance when part of speech names have not yet been determined.
The part of speech formats for lines in this file are as follows:
part_of_speech
composite_part_of_speech $ part_of_speech : part_of_speech:...:part_of_speech
All parts of speech appearing in definitions of composite parts of speech must be defined before the composite part of speech can be
defined. There must not be more than one part of speech or composite part of speech with the same name.
Everything on a line following a semicolon (;) is treated as comment and ignored.
Information on this file (looking up part of speech names from part of speech numbers and looking up the structural elements of composite
parts of speech) are provided by the library and can thus be referenced through the client process.
EXAMPLES
Example 1:
[SENTOU] ;Beginning of a sentence
[MEISHI] ;Indicates a noun.
[ICHIDAN]
[ICHIDANMEI]$[ICHIDAN]:[MEISHI] ;A composite part of speech
@
@
NOTES
Information on the main parts of speech must be consistent between all dictionaries and connection information files. Do not edit and
change hinsi.data. (If the file is changed, the meaning of the part of speech numbers in dictionaries and connection information files
created with the old part of speech administration file will change.)
SunOS 5.10 28 May 1998 wnn_hinsi.data(4)