10-10-2013
For a new problem, please create a new thread on the forum.
10 More Discussions You Might Find Interesting
1. HP-UX
Hello,
Below is my input file's content ( in HP-UX platform ):
ABCD120672-B21 1
ABCD142257-002 1
ABCD142257-003 1
ABCD142257-006 1
From the above, I just want to get the field of 13 characters that comes after 'ABCD' i.e '120672-B21'... . Could... (2 Replies)
Discussion started by: jansat
2 Replies
2. Shell Programming and Scripting
I've got a file that would have lines similar to:
12345678 x.00 xx.00 x.00 xxx.00 xx.00 xx.00 xx.00
23456781 x.00 xx.00 xx.00 xx.00 xx.00 x.00 xxx.00 xx.00 xx.00 xx.00
34567812 x.00 xx.00 x.00 xxx.00 xx.00 xx.00 xx.00
45678123 x.00 xx.00 xx.00 xx.00 xx.00 x.00 xxx.00 xx.00 xx.00 xx.00 xx.00... (10 Replies)
Discussion started by: Cailet
10 Replies
3. UNIX for Dummies Questions & Answers
I have a file that looks like this:
It is a huge file and basically I want to delete everything at the > line except for the number after “C”.
>c1154... (2 Replies)
Discussion started by: kylle345
2 Replies
4. Shell Programming and Scripting
I have a file with 3 columns
2 4 5
2 4 7
3 5 7
4 -6 9
5 -9 4
6 -3 3
Bascially I want to delete the entire row if column 2 is a "-"
So the end result will be
2 4 5
2 4 7
3 5 7
I have trouble doing this cause of the - in front of the number.
thanks (2 Replies)
Discussion started by: kylle345
2 Replies
5. Shell Programming and Scripting
Hi,
I have a log file whose size is number of characters in the file with multiple lines.
Example:
SQL*Loader: Release 10.2.0.4.0 - Production on Sat Sep 12 07:55:29 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Control File: ../adm/ctl/institution.ctl
Character Set... (4 Replies)
Discussion started by: rajeshorpu
4 Replies
6. Shell Programming and Scripting
Hi,
I want to delete rows whenever column one has the letters 'rpa'. The file is tab seperated.
e.g.
years 1
bears 1
cats 2
rpat 3
rpa99 4
rpa011 5
then removing 'rpa' containing rows based on the first column
years 1
bears 1
cats 2
thanks (7 Replies)
Discussion started by: phil_heath
7 Replies
7. Shell Programming and Scripting
Hi All,
I have a text file with the following text in it:
file:///About/accessibility.html
file:///About/disclaimer.html
file:///About/disclaimer.html#disclaimer
file:///pubmed?term=%22Dacre%20I%22%5BAuthor%5D
file:///pubmed?term=%22Madigan%20J%22%5BAuthor%5D... (8 Replies)
Discussion started by: shoaibjameel123
8 Replies
8. Shell Programming and Scripting
sed -e "s// /g" old.txt > new.txt
While I do know some control characters need to be escaped, can normal characters also be escaped and still work the same way? Basically I do not know all control characters that have a special meaning, for example, ?, ., % have a meaning and have to be escaped... (11 Replies)
Discussion started by: ijustneeda
11 Replies
9. Shell Programming and Scripting
I am trying to find a specific set of characters in a long file. I only want to find the characters in column 265 for 4 bytes.
Is there a search for that? I tried cut but couldn't get it to work.
Ex. I want to find '9999' in column 265 for 4 bytes. If it is in there, I want it to print... (12 Replies)
Discussion started by: Drenhead
12 Replies
10. Shell Programming and Scripting
Hi all, I need help.
I have an input text file (input.txt) like this:
21 GTGCAACACCGTCTTGAGAGG 50
21 GACCGAGACAGAATGAAAATC 73
21 CGGGTCTGTAGTAGCAAACGC 108
21 CGAAAAATGAACCCCTTTATC 220
21 CGTGATCCTGTTGAAGGGTCG 259
Now I need to count A/T/G/C numbers at each character location in column... (2 Replies)
Discussion started by: thienxho
2 Replies
LEARN ABOUT CENTOS
tacchtype
thai/wtt.h(3) libthai thai/wtt.h(3)
NAME
thai/wtt.h -
WTT I/O implementation.
SYNOPSIS
Enumerations
enum WTTClass { CTRL = 0, NON = 1, CONS = 2, LV = 3, FV1 = 4, FV2 = 5, FV3 = 6, BV1 = 7, BV2 = 8, BD = 9, TONE = 10, AD1 = 11, AD2 = 12,
AD3 = 13, AV1 = 14, AV2 = 15, AV3 = 16 }
Classification of characters in TIS620 according to WTT.
enum WTTOp { CP = 1, XC = 2, AC = 3, RJ = 4, SR = 5 }
Composibility checking tables.
Functions
WTTClass TACchtype (thchar_t c)
WTT character class.
WTTOp TACio_op (thchar_t c1, thchar_t c2)
WTT I/O operation.
Detailed Description
WTT I/O implementation.
WTT stands for Wing Tuk Tee (in Thai, Runs everywhere). It was defined by TACTIS (Thai API Consortium/Thai Industrial Standard) in the
NECTEC Thai Software Standard Project (1989-1991), and later endorsed by Thai Industrial Standard Institute (TISI) as TIS 1566-2541 in
1998.
WTT classifies Thai chracter(TIS-620) into 17 types below.
ITYPE VALUE SHORT_DESCRIPTION
CTRL 0 control characters
NON 1 non composible characters
CONS 2 consonants
LV 3 leading vowels
FV1 4 following vowels 1
FV2 5 following vowels 2
FV3 6 following vowels 3
BV1 7 below vowels 1
BV2 8 below vowels 2
BD 9 below diacritics
TONE 10 tonemarks
AD1 11 above diacritics 1
AD2 12 above diacritics 2
AD3 13 above diacritics 3
AV1 14 above vowels 1
AV2 15 above vowels 2
AV3 16 above vowels 3
Functions in thctype.h do basic character classifications while wtt.h classifies a chracter in detail. Please refer to the reference.
TACio_op() checks how to compose two given chracters. The possiblities are Composible (CP), Non-display (XC), Accept (AC), Reject (RJ) and
Strict Reject (SR). The values of CP, XC, AC, RJ and SR are difined in wtt.h. And their meanings are:
o CP : second character is displayed in the same cell as the first, also implies an acceptance.
o XC : Do nothing.
o AC : Display second character in the next cell.
o RJ : Discard second character.
o SR : Reject second character only in strict mode.
Enumeration Type Documentation
enum WTTClass
Classification of characters in TIS620 according to WTT.
Enumerator
CTRL control chars
NON non composibles
CONS consonants
LV leading vowels
FV1 following vowels 1
FV2 following vowels 2
FV3 following vowels 3
BV1 below vowels 1
BV2 below vowels 2
BD below diacritics
TONE tonemarks
AD1 above diacritics 1
AD2 above diacritics 2
AD3 above diacritics 3
AV1 above vowels 1
AV2 above vowels 2
AV3 above vowels 3
enum WTTOp
Composibility checking tables.
Enumerator
CP COMPOSIBLE - following char is displayed in the same cell as leading char, also implies ACCEPT
XC Non-display
AC ACCEPT - display the following char in the next cell
RJ REJECT - discard that following char, ignore it
SR STRICT REJECT - REJECT only if in strict mode
Function Documentation
WTTClass TACchtype (thchar_tc)
WTT character class.
Parameters:
c : the character
Returns:
WTT character class { CTRL, ..., AV3 }
WTTOp TACio_op (thchar_tc1, thchar_tc2)
WTT I/O operation.
Parameters:
c1 : previous character
c2 : next character
Returns:
WTT I/O operation { CP, XC, AC, RJ, SR }
Author
Generated automatically by Doxygen for libthai from the source code.
Version 0.1.14 Tue Jun 17 2014 thai/wtt.h(3)