01-04-2008
Quote:
Originally Posted by
DeuceLee
maybe i suck at searching too
always go
here first
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi again. Sorry if it seems like I'm spamming the boards a bit, but I figured I might as well ask all the questions I need answers to at once, and hopefully at least get some.
I have installed Solaris 10 on a server. The default text editors are there (vi, ex, ed, maybe others, I know emacs is... (4 Replies)
Discussion started by: EugeneG
4 Replies
2. Shell Programming and Scripting
Hi,
I am having huge file with the following lines.
2007:10:01:00:00:49:GMT: subject=BMRA.BM.T_ABTH7.FPN, message={SD=2007:10:01:00:00:00:GMT,SP=5,NP=2,TS=2007:10:01:01:00:00:GMT,VP=0.0,TS=2007:10:01:01:30:00:GMT,VP=0.0}
2007:10:01:00:00:49:GMT: subject=BMRA.BM.T_ABTH7G.FPN,... (9 Replies)
Discussion started by: nathasha
9 Replies
3. Shell Programming and Scripting
I have a data file in the following format (refer to input file) with multiple lines containing some information. I need an output file to loop thorough the input file with summarized information as seen below (refer to output file) ‘Date Time' and ‘Beta Id' input file values should be concatenated... (7 Replies)
Discussion started by: shekharaj
7 Replies
4. Shell Programming and Scripting
Hi
I have a set of options in the form of key value in a file. Need to find a particular value of 'a' and delete all lines till the next 'a' keyword .
Ex :
a bbb
c ddd
e fff
g hhh
a sss
c ggg
e xxx
f sss
a ddd
d sss
r sss
g hhh (5 Replies)
Discussion started by: TDUser
5 Replies
5. Shell Programming and Scripting
Hello,
For the life of me, I can't figure out how to extract only certain lines of a file. For example, the file contains:
project.max-sem-ids
privileged 1.02K - deny -
system 16.8M max deny ... (2 Replies)
Discussion started by: PointyWombat
2 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I need help on the following req.
I am getting output of a command as follows:
16377612 total memory
3802460 used memory
2827076 active memory
681948 inactive memory
12575152 free memory
477452 buffer memory
I want to compute used... (1 Reply)
Discussion started by: mailsara
1 Replies
7. Shell Programming and Scripting
I have file which is having 500 lines. I want to get the first 100 lines then sleep, then again next 100 lines sleep so now till the end of the file.
Can someone tell me in perl and bash.
also i want to do it in threads.
Thanks.. (6 Replies)
Discussion started by: Anjan1
6 Replies
8. Shell Programming and Scripting
I have a tool which generates results in a file at every minute and which has following columns.
I need to create a script checks this file constantly and if Column ( QOM ) has value more then "30S" it should send an email.
Can anybody help ?
Thansk a lot.
Time MxML MxQD G P OIC OUC MDC... (11 Replies)
Discussion started by: jayeshpatel
11 Replies
9. Shell Programming and Scripting
What is the correct syntax to have the awk parse the next line as well? The next in bold is where I think it should go, but I wanted to ask the experts since I am a beginner. The file to be parsed is attached as well. Thank you :).
awk 'NR==2 {split($2,a,"");b=substr(a,1,length(a-1));print... (6 Replies)
Discussion started by: cmccabe
6 Replies
10. Shell Programming and Scripting
GM,
I have an issue at work, which requires a simple solution. But, after multiple attempts, I have not been able to hit on the code needed.
I am assuming that sed, awk or even perl could do what I need.
I have an application that adds extra blank page feeds, for multiple reports, when... (7 Replies)
Discussion started by: jxfish2
7 Replies
genxlt(1) General Commands Manual genxlt(1)
NAME
genxlt - Generates a codeset conversion table
SYNOPSIS
genxlt [-f outputfile] [inputfile]
OPTIONS
Specifies that the generated version of the codeset conversion table be placed in the file specified by outputfile.
DESCRIPTION
The iconv subsystem can use either an algorithmic or a table converter to convert data from one codeset to another. The genxlt command cre-
ates a table converter to be used by the iconv subsystem.
The genxlt command reads a source codeset conversion table file from inputfile and writes the compiled version to outputfile. If inputfile
is not specified, standard input is used. If outputfile is not specified, standard output is used. The source codeset conversion table file
contains directives that are acted upon by the genxlt command to produce the compiled version.
The format of a translation source file is as follows: Lines whose initial nonwhite-space character is the # (number sign) are treated as
comment lines. Null lines and lines consisting only of white-space characters are treated as comment lines. Noncomment lines have to be
of the following form: source target comment
If source is found in the source codeset conversion table file multiple times, the last entry is used in the compilation of the translation
table.
The source and target arguments must be in the range of 0x00 through 0xff, inclusive; this restricts the table to 8-bit codesets. The con-
version table must define all of the 256 possible source values; otherwise, processing the table results in an error.
The following is an excerpt of a codeset conversion table:
0x80 0xc7 C cedilla 0x81 0xfc u diaeresis 0x82 0xe9 e acute 0x83 0xe2 a circumflex 0x84 0xe4 a diaeresis 0x85
0x40 a grave
The name of the file generated by the genxlt command must use the following naming convention in order for the iconv subsystem to recognize
the file as a valid converter.
fromcode: "ISO8859-1-GL" tocode: "ISO8859-1" conversion table file: "ISO8859-1-GL_ISO8859-1"
The conversion table file name is formed by concatenating the tocode file name onto the fromcode file name, with an underscore character
between the two. The compiled conversion table must reside in the /usr/lib/nls/loc/iconvTable directory or, if the LOCPATH variable is
defined, in an iconvTable directory subordinate to the LOCPATH directory. Otherwise, the iconv command does not find the table.
Note
The LOCPATH variable also overrides the default search path (/usr/lib/nls/loc) that is used to find locales. If this variable is defined,
it must therefore specify a search path that application and system software can use to find both locales and converters. The LOCPATH vari-
able is not defined by any standard, so use of the variable should be limited to testing locales or converters under development.
EXIT STATUS
If successful, the genxlt command exits with a value of 0 (zero). If an unknown flag is detected, or the specified input file or output
file cannot be opened, the genxlt command is unsuccessful and exits with a value of 1. If a syntax error is detected in the input stream,
the genxlt command will exit immediately with a value of 2, and write to standard error the line numbers where the syntax error occurred.
SEE ALSO
Commands: iconv(1)
Functions: iconv(3)
genxlt(1)