Hi,
I am new to UNIX scripting and woiuld appreicate your help...
Input file contains only one (but long) record:
aaaaabbbbbcccccddddd.....
Desired file:
NEW RECORD #new record (hardcoded) added as first record - its length is irrelevant#
aaaaa
bbbbb
ccccc
ddddd
...
...
... (1 Reply)
Hi guys,
i have a big file with the following format.This includes header(H),detail(D) and trailer(T) information in the file.My problem is i have to search for the character "6h" at 14 th and 15 th position in all the records .if it is there i have to write all those records into a... (1 Reply)
I have i got a requirement like below.
I have input file which contains following fixed width records.
00000000000088500232007112007111
I need the full record and concatenated with ~ and characters from 1to 5 and concatenated with ~ and charactes from 10 to 15
The out put will be like... (1 Reply)
I am trying to see if there is a way in awk to test the next record before processing.
All I am trying to do is see if the next line equal something then turn a flag off.
Example:
Problem
Cron
IneedThis
KeyOnThis
somemoredata
somemoredata
Cron
somemoredata
somemoredata
IneedThis... (7 Replies)
Hi,
I have a input file with the following entries:
1one
2two
3three
1four
2five
3six
1seven
1eight
1nine
2ten
The output should be
1one
2two
3three
1four
2five
3six (2 Replies)
Hi,
I have a input file with the following entries:
1one
2two
3three
1four
2five
3six
1seven
1eight
1nine
2ten
2eleven
2twelve
1thirteen
2fourteen
The output should be: (5 Replies)
Hi! all
can any one tell me how to compare current record of column with next and previous record in awk without using array
my case is like this
input.txt
0 32
1 26
2 27
3 34
4 26
5 25
6 24
9 23
0 32
1 28
2 15
3 26
4 24 (7 Replies)
I have data coming in the below format for each record
<?xml version="1.0" encoding="UTF-8" standalone="no"?><test_sox xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><testdetials>....</test_sox>
<?xml version="1.0" encoding="UTF-8" standalone="no"?><test_sox... (8 Replies)
Hi,,
I have requirement that i need to get DISTINCT values from a table and if there are two records i need to update it to one record and then need to submit INSERT statements by using the updated value as a parameter. Here is the example follows..
SELECT DISTINCT ID FROM OFFER_GROUP WHERE... (1 Reply)
Discussion started by: Samah
1 Replies
LEARN ABOUT OPENSOLARIS
iconv_dhn
iconv_dhn(5) Standards, Environments, and Macros iconv_dhn(5)NAME
iconv_dhn - code set conversion tables for DHN (Dom Handlowy Nauki)
DESCRIPTION
The following code set conversions are supported:
+--------------------------------------------------------------------+
| Code Set Conversions Supported |
+--------------+--------+--------------+--------+--------------------+
| Code |Symbol |Target Code |Symbol | Target Output |
+--------------+--------+--------------+--------+--------------------+
|DHN |dhn |ISO 8859-2 |iso2 | ISO Latin 2 |
+--------------+--------+--------------+--------+--------------------+
|DHN |dhn |MS 1250 |win2 | Windows Latin 2 |
+--------------+--------+--------------+--------+--------------------+
|DHN |dhn |MS 852 |dos2 | MS-DOS Latin 2 |
+--------------+--------+--------------+--------+--------------------+
|DHN |dhn |Mazovia |maz | Mazovia |
+--------------+--------+--------------+--------+--------------------+
CONVERSIONS
The conversions are performed according to the following tables. All values in the tables are given in octal.
DHN to ISO 8859-2
For the conversion of DHN to ISO 8859-2, all characters not in the following table are mapped unchanged.
+-----------------------------------------------------------------+
| | Conversions|Performed | |
| DHN | ISO 8859-2 | DHN | ISO 8859-2 |
|24-177 | 40 |222 |40 |
|200 | 241 |223 |364 |
|201 | 306 |224 |366 |
|202 | 312 |225-230 |40 |
|203 | 243 |231 |326 |
|204 | 321 |232 |334 |
|205 | 323 |233-237 |40 |
|206 | 246 |240 |341 |
|207 | 254 |241 |355 |
|210 | 257 |242 |363 |
|211 | 261 |243 |372 |
|212 | 346 |244-340 |40 |
|213 | 352 |341 |337 |
|214 | 263 |342-365 |40 |
|215 | 361 |366 |367 |
|216 | 363 |367 |40 |
|217 | 266 |370 |260 |
|220 | 274 |371-376 |40 |
|221 | 277 | | |
+---------------+----------------+----------------+---------------+
DHN to MS 1250
For the conversion of DHN to MS 1250, all characters not in the following table are mapped unchanged.
+-----------------------------------------------------------------+
| | Conversions|Performed | |
| DHN | MS 1250 | DHN | MS 1250 |
|200 | 245 |233-237 |40 |
|201 | 306 |240 |341 |
|202 | 312 |241 |355 |
|203 | 243 |242 |363 |
|204 | 321 |243 |372 |
|205 | 323 |244-251 |40 |
|206 | 214 |252 |254 |
|207 | 217 |253-255 |40 |
|210 | 257 |256 |253 |
|211 | 271 |257 |273 |
|212 | 346 |260-340 |40 |
|213 | 352 |341 |337 |
|214 | 263 |342-345 |40 |
|215 | 361 |346 |265 |
|216 | 363 |347-360 |40 |
|217 | 234 |361 |261 |
|220 | 237 |362-365 |40 |
|221 | 277 |366 |367 |
|222 | 40 |367 |40 |
|223 | 364 |370 |260 |
|224 | 366 |371 |40 |
|225-230 | 40 |372 |267 |
|231 | 326 |373-376 |40 |
|232 | 334 | | |
+---------------+----------------+----------------+---------------+
DHN to MS 852
For the conversion of DHN to MS 852, all characters not in the following table are mapped unchanged.
+-----------------------------------------------------------------+
| | Conversions|Performed | |
| DHN | MS 852 | DHN | MS 852 |
|200 | 244 |212 |206 |
|201 | 217 |213 |251 |
|202 | 250 |214 |210 |
|203 | 235 |215 |344 |
|204 | 343 |216 |242 |
|205 | 340 |217 |230 |
|206 | 227 |220 |253 |
|207 | 215 |221 |276 |
|210 | 275 |222-375 |40 |
|211 | 245 | | |
+---------------+----------------+----------------+---------------+
DHN to Mazovia
For the conversion of DHN to Mazovia, all characters not in the following table are mapped unchanged.
+-----------------------------------------------------------------+
| | Conversions|Performed | |
| DHN | Mazovia | DHN | Mazovia |
|200 | 217 |212 |215 |
|201 | 225 |213 |221 |
|202 | 220 |214 |222 |
|203 | 234 |215 |244 |
|204 | 245 |216 |242 |
|205 | 243 |217 |236 |
|206 | 230 |220 |246 |
|207 | 240 |221 |247 |
|210 | 241 |222-247 |40 |
|211 | 206 | | |
+---------------+----------------+----------------+---------------+
FILES
/usr/lib/iconv/*.so conversion modules
/usr/lib/iconv/*.t conversion tables
/usr/lib/iconv/iconv_data list of conversions supported by conversion tables
SEE ALSO iconv(1), iconv(3C), iconv(5)SunOS 5.10 18 Apr 1997 iconv_dhn(5)