Hey all,
I am haivng n number of files all of them are of the same format but different details. i.e
File1 is having the folloeing details:
"Account1",123
"Account2",10
"Account3",12355
"Accountn",555
File2 is having the folloeing details:
"Account1",1234
"Account2",100... (5 Replies)
Hi,
I have a file which has data kind of like this.
Apr 13 08:20:38 uslis10a sendmail: m3DDKSx3006432: usliss26.ca.com
Apr 13 08:20:38 uslis10b sendmail: m3DDKSoK006433: usliss26.ca.com
Apr 13 08:20:38 uslis10b sendmail: m3DDKcSo006442: usliss26.ca.com
Apr 13 08:20:38 uslis10c... (2 Replies)
hi ,
I have a javascript file like this:
function fnValidateId(){
var array_id = new Array("444","7888","6633","555","146562","3333","33332")
var tmp_id = document.form1.id.value;
var num=0;
while(1)
{
if(tmp_id ==... (9 Replies)
Hi,
i have created a simple .ksh file in the following manner
cat <<EOF >mfile
#!/bin/ksh
echo "hello world"
EOF
I have 2 questions
1. now i would like to add a second line after the first echo command
e.g. echo "this is line 2"
how can i do that ?
2. I would then like... (1 Reply)
I am in a dire need of doing this job , please help from shell script or perl script. It will be highly appreciated.
Please have a look at the following INPUT file;
The first 14 rows are not of interest but I want them to be included in the output file as they are. From the row 14... (3 Replies)
Hi,
I am new to shell programming, and want to know is it possible to change the contents of file using script?
for example, if want to search 2 words and want to replace these words with 2 new words.
Regards,
Manoj (4 Replies)
Dear Members,
I have a file which contains data as shown below:
LOAD DATA
APPEND
INTO TABLE xxap.test
( RAW_DATA char(3000) "replace(:raw_data,'*','|')",
LOADING_SEQUENCE "xx_gl_bank_fee_s1.nextval",
CREATION_DATE SYSDATE,
LAST_UPDATE_DATE SYSDATE,
ATTRIBUTE1 "DATE_STAMP",
... (1 Reply)
Hi,
I want to convert a file that looks like this
>joe
XXXXXXXXXXXXXXXXXXX
>man
BBBBBBBBBBBBBBBBBBBBBSSSSSSSS
to something that looks like this (where the spacing is tab seperated)
joe XXXXXXXXXXXXXXXXXXX
man BBBBBBBBBBBBBBBBBBBBBSSSSSSSS
I am able to do the reverse but the other... (3 Replies)
Hi all,
I have a snmpd.conf file as below. in "SECTION: Trap Destinations" line I want to add "trap2dest <IP>:162 <com_str>" on a new line. For this I wrote following code
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
FILE *fp;
ssize_t read_char_count = 0;
... (2 Replies)
Hi Pros,
I'm writing a script to modify listener.ora file on multiple hosts. When I ssh to any server from a central server in our environment we are presented with menu to select the instance. I need to set my environment to listener which could be different number on every instance. How can I... (5 Replies)
Discussion started by: humble_learner
5 Replies
LEARN ABOUT SUNOS
locale.h
locale.h(3HEAD) Headers locale.h(3HEAD)NAME
locale.h, locale - category macros
SYNOPSIS
#include <locale.h>
DESCRIPTION
The <locale.h> header provides a definition for the lconv structure, which includes the following members. (See the definition of LC_MONE-
TARY in locale(5).)
char *currency_symbol
char *decimal_point
char frac_digits
char *grouping
char *int_curr_symbol
char int_frac_digits
char int_n_cs_precedes
char int_n_sep_by_space
char int_n_sign_posn
char int_p_cs_precedes
char int_p_sep_by_space
char int_p_sign_posn
char *mon_decimal_point
char *mon_grouping
char *mon_thousands_sep
char *negative_sign
char n_cs_precedes
char n_sep_by_space
char n_sign_posn
char *positive_sign
char p_cs_precedes
char p_sep_by_space
char p_sign_posn
char *thousands_sep
The <locale.h> header defines NULL (as defined in <stddef.h>) and the following as macros:
LC_ALL
LC_COLLATE
LC_CTYPE
LC_MESSAGES
LC_MONETARY
LC_NUMERIC
LC_TIME
The preceding expand to distinct integer constant expressions, for use as the first argument to the setlocale() function. See setlo-
cale(3C).
Additional macro definitions, beginning with the characters LC_ and an uppercase letter, can also be specified here.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO setlocale(3C), localeconv(3C), stddef.h(3HEAD), attributes(5), locale(5), standards(5)SunOS 5.10 10 Sep 2004 locale.h(3HEAD)