08-29-2011
What do you suggest is the best indication of the last line of "UNION ALL"?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a small query. I have a file containing the following lines
abcd<12></12>fdfgdf<12>sdfgfg<12>
sdfsdf<12></12>ytunfg<12>
hggfhf<12>rtysb<12>zdfgdfg<12>
Now I wish to delete ONLY the last occurance of string <12> from every lines of code. That mease my final output will be like this:... (7 Replies)
Discussion started by: dkhanna01
7 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I file that has all the status for one day (24hours). Now what I want to do is to count the occurence of a string in its output hourly like for example count occurance of successful or asynchronous clear destinon for every hour and redirect it to file. Please see sample file below. Please... (2 Replies)
Discussion started by: ayhanne
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am new to Unix world. Is there any command which can directly return the second occurance of a particular string in a file? Basically, I want to read the contents of the file from the second occurance of a particualr string. Can be implemented using a loop, but am just wondering if there... (5 Replies)
Discussion started by: saurabhsinha23
5 Replies
4. Shell Programming and Scripting
Hi,
I'm trying to match records using awk which contain only one occurance of my string, I know how to match one or more (+) but matching only one is eluding me without developing some convoluted bit of code. I was hoping there would be some simple pattern matching thing similar to '+' but... (9 Replies)
Discussion started by: jonathanm
9 Replies
5. UNIX for Dummies Questions & Answers
Hey Folks,
I have a file that contains data that I am working with, sometimes this file has a very long string of text that messes with an awk command in a script i am trying to build. I would like to cut this string of text out of a file and then redirect everything except that string to a new... (5 Replies)
Discussion started by: deepslp
5 Replies
6. Shell Programming and Scripting
hi ,
i have an xml that comes in a single, the entire xml file is read as a single line when i open in edit plus or unix. i need to amend the contents of this xml file.
below is the extract from the file
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"... (5 Replies)
Discussion started by: sais
5 Replies
7. Shell Programming and Scripting
I want to replace every 2nd occurance of a string/character from a line.
ababacbsbddbsbbcbdbssb
i want to replace every s2nd b with @ like below
should be like
aba@acbs@ddbs@bc@dbss@ (3 Replies)
Discussion started by: ratheeshjulk
3 Replies
8. Windows & DOS: Issues & Discussions
So, I have a text file that looks like this:
0,0: (168,168,176) #A8A8B0 srgb(168,168,176)
1,0: (168,168,176) #A8A8B0 srgb(168,168,176)
2,0: (166,166,174) #A6A6AE srgb(166,166,174)
3,0: (166,166,174) #A6A6AE srgb(166,166,174)
4,0: (168,168,176) #A8A8B0 srgb(168,168,176)
5,0:... (0 Replies)
Discussion started by: pasc
0 Replies
9. Shell Programming and Scripting
I have two files
1. input.txt
2. keyword.txt
input.txt has contents like
.src_ref 0 "call.s" 24 first
0x000000 0x5a80 0x0060 BRA.l 0x60
.src_ref 0 "call.s" 30 first
0x000002 0x1bc5 RETI
.src_ref 0 "call.s" 31 first
0x000003 0x6840 ... (2 Replies)
Discussion started by: acdc
2 Replies
10. UNIX for Beginners Questions & Answers
My server xml file has huge data part of which i'm sharing below.
I wish to add the below text held by variable "addthisline" after the closing braces i.e --> once the first </Connector> tag is found.
addthisline="I need to be inserted after the comments"
Thus my searchstring is... (3 Replies)
Discussion started by: mohtashims
3 Replies
jconv8(7M) STREAMS Modules jconv8(7M)
NAME
jconv8 - code conversion STREAMS module (8-bit JIS/Japanese EUC)
SYNOPSIS
#include <sys/types.h>
#include <sys/stropt.h>
#include <sys/conf.h>
ioctl(fd, I_PUSH, "jconv8");
DESCRIPTION
jconv8 is a STREAMS module that is available to be pushed onto a stream. Usually, this module has to be pushed onto a stream between a raw
device such as ptem(7M) and terminal line discipline module such as ldterm(7M).
jconv8 has to be pushed when you set 8-bit JIS terminal and control Japanese EUC data. It converts up stream for 8-bit JIS code into Japa-
nese EUC and passes high module. It also converts down stream for Japanese EUC into 8-bit JIS code and passes low module.
IOCTLS
jconv8 processes the following ioctls. JA_SKIOC and JA_GKIOC are specified pointer to the next structure as argument:
struct kioc {
char ki;
char ko;
};
JA_SKIOC Change the 3rd character of JIS kanji and ASCII indication escape sequence.
JA_GKIOC Return the 3rd character of current JIS kanji and ASCII indication escape sequence.
EUC_OXLON Start performing code conversion between 8-bit JIS and Japanese EUC for I/O stream.
EUC_OXLOFF Stop performing code conversion between 8-bit JIS and Japanese EUC for I/O stream.
SEE ALSO
jtty(1), setterm(1), stty(1), streamio(7I), jconv7(7M), jconvrs(7M), jconvru(7M), jconvs(7M), jconvu(7M), ldterm(7M), ptem(7M)
NOTES
When you use jconv8 with jconvrs(7M) or jconvru(7M) at once and `raw' is specified by stty(1), code convert function automatically become
off without specification by EUC_OXLON / EUC_OXLOFF. By default, character set indication escape sequences as follows. The end character
may be changed by JA_SKIOC.
o ASCII indication: ESC 2/8 4/10
o Character indication: ESC 2/4 4/2
o Convert with JIS X 0201 Kana: LS1/LS0
jconv8 does not support Kanji code for Information Interchange (secondary kanji set) provided by JIS X 0212-1990.
When jconv8 is in use, csh(1) does not work properly for filename additional function.
SunOS 5.10 13 Aug 1998 jconv8(7M)