Hi all,
If you look at the example below,I want to replace the 21st character (,) with a period (.). I have 1000 records in a file can someone help me how to do that. Thankyou all in advance.
"2008-07-15... (3 Replies)
I need to replace the character on 6th position. If this character is 1 I have to repleace it with A, if it is 2 than I have to replace it with B. If it is not 1 or 2 I should not repleace it.
input:
abcd defg
abcd 1efg
mnop weac
rstu 2bcd
i need:
abcd defg
abcd Aefg
mnop weac
rstu... (2 Replies)
Hello everyone this is my first post of many to come :)
I am writing a script and in this script at one point i need to replace a character in a particular position in a string for example:
in the string "mystery" i would need to replace the 3rd position to an "r" so the string becomes... (3 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 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)
I have a requirement as below.
In one of my column, I have data which may or may not be separted with coma always. Now I need to validate the length of these text within the coma (if available) and if the length is more than 30 characters, I need to insert a coma either at 30 characters if its... (3 Replies)
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)
Discussion started by: Jagmeet Singh
3 Replies
LEARN ABOUT CENTOS
genccode
GENCCODE(8) ICU 50.1.2 Manual GENCCODE(8)NAME
genccode - generate C or platform specific assembly code from an ICU data file.
SYNOPSIS
genccode [ -h, -?, --help ] [ -a, --assembly name ] [ -d, --destdir destination ] [ -n, --name name ] [ -e, --entrypoint name ] [ -f,
--filename name ] [ filename ... ]
DESCRIPTION
genccode reads each of the supplied filename and writes out a C file containing a compilable definition of the data in the data file. The
C file name is made by taking the base name of the data filename, replacing dots by underscores, and adding a .c file extension.
If the -a option is used, platform specific assembly code is generated instead of C code. Most C compilers will accept both C and assembly
files. Instead of writing a filename with a .c file extension, a filename with a .s will be written instead.
If genccode is called with no filename it terminates gracefully.
OPTIONS -h, -?, --help
Print help about usage and exit.
-a, --assembly name
Output assembly code instead of C code. Use -h to see the list of available types of assembly to generate and to specify for this
option.
-d, --destdir destination
Set the destination directory to destination. The default destination directory is the current directory.
-n, --name name
Set the data name to name instead of the default. This name is also used as the base name of the output. The default name is made of
the icudt prefix, followed by a two-digit version number corresponding to the current version of the ICU release, and a single let-
ter indicating the endianness of the data (the letter b indicated big endian data, and the letter l indicates little endian ones).
-f, --filename name
Normally, an ICU data file such as mydata.icu will be turned into mydata_icu.c and mydata_icu.o. However, if this parameter was set
to "somedata", the output files will be somedata.o and somedata.c, respectively.
-e, --entrypoint name
Set the data entry point (used for linking against the data in a shared library form) to name. The default entry point name is made
of the data (set by the -n, --name option) followed by an underscore and the type of the data (set by the -t, --type option).
VERSION
50.1.2
COPYRIGHT
Copyright (C) 2000-2004 IBM, Inc. and others.
ICU MANPAGE 11 March 2004 GENCCODE(8)