04-22-2011
Thanks to every one.
But i just want to know why the code which i implemented did not work.
Thanks,
Suman
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to perform a simple if/else check.
if ; then
mkdir /wdnet/oracletest
else
mkdir $CON_DIR
fi
I guess I don't understand the unix basics about comparisons.
My scripts always executes the if, even though my CON_DIR variable is not blank.
What am I doing... (5 Replies)
Discussion started by: artfuldodger
5 Replies
2. Shell Programming and Scripting
I have a file named file1 which contains numbers in sequence like...
1
2
3
7
8
Then i have file File 2 that contains
4
5
........so i need to compare both files so that i can find out the missing entry in the sequence is 6.......These files are flat files which contain and so i need to... (5 Replies)
Discussion started by: coolguy01
5 Replies
3. Shell Programming and Scripting
i want to take position 19-24(only first line) from all files and need to compare any duplication is there or not.
If duplication, then i have to print the file names.
I have written to take the characters from 19-24 from all files. but how to compare ?
... (1 Reply)
Discussion started by: senthil_is
1 Replies
4. Shell Programming and Scripting
Hi,
I need to compare a column in two different csv files
file1
xyz.com,2/2/12,a,b,c
eg.com,2/2/23,a,b,ga
file2
1,2,ua,xyz.com
1,2,ua,abc.com
1,2,ua,eg.com
1,2,ua,easg.com
1,2,ua,zth.com
Read all entries in file1(which has 1000+) and compare column1 of file1 with the column4... (13 Replies)
Discussion started by: nuthalapati
13 Replies
5. UNIX for Advanced & Expert Users
File Structure
file1.txt.arch
029429288,1,,,02087400376,N,02087400376,N,0,02087400376,N,0,0,8010,08000151736,U,N,,08000151736,U,20100726111237,20100726111237,0,20100726111651,00004140,16,16,10,N;... (1 Reply)
Discussion started by: ravigupta2u
1 Replies
6. Shell Programming and Scripting
Hi All,
I would need your help to compare dates in my script.
Say if I have the dates in a file I need to comapre these dates with yesterday's date and the dates which are older than yesterday needs to be displayed.
Example:
03/22/2012
03/24/2012
03/20/2012
03/21/2012
03/12/2012... (1 Reply)
Discussion started by: pdreddy34
1 Replies
7. Shell Programming and Scripting
Hi Experts,
I have two huge files in the format as shown below.I need to open a file1 and file 2 , cut first 24 characters of file 1 and search if the key exists
in file 2 first field (delimted by *).
If the value exists , copy the third field from file 2 and replace the 5th field in file 1 .... (4 Replies)
Discussion started by: nua7
4 Replies
8. UNIX and Linux Applications
Hi,
We need to compare a text file File1.txt and config file File2.txt in a way that it checks if the content of File1.txt exists between the range mentioned in File2.cfg.
The range here is the range between col1 and col2 of File2.cfg
If the content of File1.txt lies between the range of... (12 Replies)
Discussion started by: CFA
12 Replies
9. Shell Programming and Scripting
Dear all,
I am having two files big files i need an output file as first occurance of file1 field in file2
example:
file1:raju
ranifile2:raju|123
raju|879
rani|623
rani|253result:raju|123
rani|623pls help me in this regard (3 Replies)
Discussion started by: suryanarayana
3 Replies
10. Shell Programming and Scripting
Hi , I want to compare first 3 columns of File A and File B and create a new file File C which will have all rows from File B and will include rows that are present in File A and not in File B based on First 3 column comparison.
Thanks in advance for your help.
File A
A,B,C,45,46... (2 Replies)
Discussion started by: ady_koolz
2 Replies
LEARN ABOUT OPENSOLARIS
csetcol
cset(3C) Standard C Library Functions cset(3C)
NAME
cset, csetlen, csetcol, csetno, wcsetno - get information on EUC codesets
SYNOPSIS
#include <euc.h>
int csetlen(int codeset);
int csetcol(int codeset);
int csetno(unsigned char c);
#include <widec.h>
int wcsetno(wchar_t pc);
DESCRIPTION
Both csetlen() and csetcol() take a code set number codeset, which must be 0, 1, 2, or 3. The csetlen() function returns the number of
bytes needed to represent a character of the given Extended Unix Code (EUC) code set, excluding the single-shift characters SS2 and SS3 for
codesets 2 and 3. The csetcol() function returns the number of columns a character in the given EUC code set would take on the display.
The csetno() function is implemented as a macro that returns a codeset number (0, 1, 2, or 3) for the EUC character whose first byte is c.
For example,
#include<euc.h>
...
x+=csetcol(csetno(c));
increments a counter "x" (such as the cursor position) by the width of the character whose first byte is c.
The wcsetno() function is implemented as a macro that returns a codeset number (0, 1, 2, or 3) for the given process code character pc. For
example,
#include<euc.h>
#include<widec.h>
...
x+=csetcol(wcsetno(pc));
increments a counter "x" (such as the cursor position) by the width of the Process Code character pc.
USAGE
These functions work only for the EUC locales.
The cset(), csetlen(), csetcol(), csetno(), and wcsetno() functions can be used safely in multithreaded applications, as long as setlo-
cale(3C) is not being called to change the locale.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------------------------------------+
| ATTRIBUTE TYPE ATTRIBUTE VALUE |
|MT-Level MT-Safe with exceptions |
+-----------------------------------------------------------+
SEE ALSO
setlocale(3C) euclen(3C), attributes(5)
SunOS 5.11 16 Nov 2003 cset(3C)