Sponsored Content
Top Forums Shell Programming and Scripting a bit tricky to change it multiple rows in one row and ... Post 302154665 by netbanker on Tuesday 1st of January 2008 12:48:30 AM
Old 01-01-2008
rock and roll

you make my world Smilie

Thank you guy and enjoy new year eve
 

10 More Discussions You Might Find Interesting

1. HP-UX

Change 32 bit to 64 bit Kernel

Hi, I'm using HPUX 11.11 on Vizualize B180L our productive machines have 64 bit kernel # file vmunix vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64) I got one test system, which should have the same HW (i was told it is the same HW) hpuxtest:/stand-->file... (3 Replies)
Discussion started by: funksen
3 Replies

2. Shell Programming and Scripting

change the filename by adding up 1 each time, tricky one

:confused: Hi, I posted here before for adding up of datafile name each time, here is an example: #!/bin/bash cutdfname="data11.dbf" newname=$(echo "${cutdfname}" |tr "" "" |tr "#_@-" "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |tr -s "x") num=$(echo $newname |cut -d"." -f1|awk... (5 Replies)
Discussion started by: netbanker
5 Replies

3. Shell Programming and Scripting

Spliting a row to multiple rows using shell script

Please advice script for changing from A to B I'd like to Split a row to multiple rows with 4 columns using shell script. The data of the file is in one row as below that is 28Mbyte size. A> cto10001 0000000 201010 10:52:13 cto10001 0000000 201011 10:52:13 cto10001 0000000 201011 10:52:13... (2 Replies)
Discussion started by: ianpapa
2 Replies

4. Shell Programming and Scripting

Combining multiple rows in single row based on certain condition using awk or sed

Hi, I'm using AIX(ksh shell). > cat temp.txt "a","b",0 "c",bc",0 "a1","b1",0 "cc","cb",1 "cc","b2",1 "bb","bc",2 I want the output as: "a","b","c","bc","a1","b1" "cc","cb","cc","b2" "bb","bc" I want to combine multiple lines into single line where third column is same. Is... (1 Reply)
Discussion started by: samuelray
1 Replies

5. Shell Programming and Scripting

Converting Multiple rows to Single Row using unix commands

Can somebody help me in solving this.. Input data is like 0 A 1 B 2 C 3 D 0 A1 1 B1 2 C1 3 D1 0 A2 1 B2 2 C2 3 D2 Output should be like A B C D A1 B1 C1 D1 A2 B2 C2 D2 (7 Replies)
Discussion started by: Mahantesh Patil
7 Replies

6. Shell Programming and Scripting

Comma delimited row into multiple rows, repeat first value

i am building a database to keep track of unix groups. Using the command "ypcat group" I get an output similar to the following group1:GROUP:9999:user1,user2,user3 groupA:GROUP:1111:usera,userb,userc I want to convert this output so it looks like this group1:user1 group1:user2... (2 Replies)
Discussion started by: newreverie
2 Replies

7. Shell Programming and Scripting

How to merge multiple rows into single row if first column matches ?

Hi, Can anyone suggest quick way to get desired output? Sample input file content: A 12 9 A -0.3 2.3 B 1.0 -4 C 34 1000 C -111 900 C 99 0.09 Output required: A 12 9 -0.3 2.3 B 1.0 -4 C 34 1000 -111 900 99 0.09 Thanks (3 Replies)
Discussion started by: cbm_000
3 Replies

8. Shell Programming and Scripting

Shell Code required -Output in Multiple Rows to be in single row separated by Commas -

Hola Greetings Experts , I have records spreaded across multiple lines. in attached log.txt i want output to be in 1 line like this below Atached as Output.txt. In brief Output related to 1 line is spreaded across multiple row I wanted it to be in 1 row . Please opem the file in notepad... (4 Replies)
Discussion started by: manishK
4 Replies

9. Shell Programming and Scripting

Converting a single row to multiple rows

Hi, I want to convert a single row values to multiple rows, but the no. of rows are not fixed. For example, I have a row as below abc-def-lmn-mno-xyz out put should be get abc get def get lmn get xyz (4 Replies)
Discussion started by: Suneel Mekala
4 Replies

10. Shell Programming and Scripting

Splitting single row into multiple rows based on for every 10 digits of last field of the row

Hi ALL, We have requirement in a file, i have multiple rows. Example below: Input file rows 01,1,102319,0,0,70,26,U,1,331,000000113200000011920000001212 01,1,102319,0,1,80,20,U,1,241,00000059420000006021 I need my output file should be as mentioned below. Last field should split for... (4 Replies)
Discussion started by: kotra
4 Replies
iconv_koi8-r(5)                                         Standards, Environments, and Macros                                        iconv_koi8-r(5)

NAME
iconv_koi8-r - code set conversion tables for KOI8-R DESCRIPTION
The following code set conversions are supported: +-------------------------------------------------------------------------+ | Code Set Conversions Supported | +--------------+--------+--------------+--------+-------------------------+ | Code |Symbol |Target Code |Symbol | Target Output | +--------------+--------+--------------+--------+-------------------------+ |KOI8-R |koi8 |ISO 8859-5 |iso5 | ISO 8859-5 Cyrillic | +--------------+--------+--------------+--------+-------------------------+ |KOI8-R |koi8 |PC Cyrillic |alt | Alternative PC Cyrillic | +--------------+--------+--------------+--------+-------------------------+ |KOI8-R |koi8 |MS 1251 |win5 | Windows Cyrillic | +--------------+--------+--------------+--------+-------------------------+ |KOI8-R |koi8 |Mac Cyrillic |mac | Macintosh Cyrillic | +--------------+--------+--------------+--------+-------------------------+ CONVERSIONS
The conversions are performed according to the following tables. All values in the tables are given in octal. KOI8-R to ISO 8859-5 For the conversion of KOI8-R to ISO 8859-5, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | KOI8-R | ISO 8859-5 | KOI8-R | ISO 8859-5 | |24 | 4 |320 |337 | |241 | 362 |321 |357 | |242 | 363 |322 |340 | |243 | 361 |323 |341 | |244 | 364 |324 |342 | |245 | 365 |325 |343 | |246 | 366 |327 |322 | |247 | 367 |330 |354 | |250 | 370 |331 |353 | |251 | 371 |332 |327 | |252 | 372 |333 |350 | |253 | 373 |334 |355 | |254 | 374 |335 |351 | |256 | 376 |336 |347 | |257 | 377 |337 |352 | |260 | 360 |340 |316 | |261 | 242 |341 |260 | |262 | 243 |342 |261 | |263 | 241 |343 |306 | |264 | 244 |344 |264 | |265 | 245 |345 |265 | |266 | 246 |346 |304 | |267 | 247 |347 |263 | |270 | 250 |350 |305 | |271 | 251 |351 |270 | |272 | 252 |352 |271 | |273 | 253 |353 |272 | |274 | 254 |354 |273 | |275 | 255 |355 |274 | |276 | 256 |356 |275 | |277 | 257 |357 |276 | |300 | 356 |360 |277 | |301 | 320 |361 |317 | |302 | 321 |362 |300 | |303 | 346 |363 |301 | |304 | 324 |364 |302 | |305 | 325 |365 |303 | |306 | 344 |366 |266 | |307 | 323 |367 |262 | |310 | 345 |370 |314 | |311 | 330 |371 |313 | |312 | 331 |372 |267 | |313 | 332 |373 |310 | |314 | 333 |374 |315 | |315 | 334 |375 |311 | |316 | 335 |376 |307 | |317 | 336 | | | +---------------+----------------+----------------+---------------+ KOI8-R to PC Cyrillic For the conversion of KOI8-R to PC Cyrillic, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | KOI8-R | PC Cyrillic | KOI8-R | PC Cyrillic | |24 | 4 |333 |350 | |200-242 | 40 |334 |355 | |243 | 361 |335 |351 | |244-254 | 40 |336 |347 | |255 | 260 |337 |352 | |256-262 | 40 |340 |236 | |263 | 360 |341 |200 | |264-274 | 40 |342 |201 | |275 | 260 |343 |226 | |276-277 | 40 |344 |204 | |300 | 356 |345 |205 | |301 | 240 |346 |224 | |302 | 241 |347 |203 | |303 | 346 |350 |225 | |304 | 244 |351 |210 | |305 | 245 |352 |211 | |306 | 344 |353 |212 | |307 | 243 |354 |213 | |310 | 345 |355 |214 | |311 | 250 |356 |215 | |312 | 251 |357 |216 | |313 | 252 |360 |217 | |314 | 253 |361 |237 | |315 | 254 |362 |220 | |316 | 255 |363 |221 | |317 | 256 |364 |222 | |320 | 257 |365 |223 | |321 | 357 |366 |206 | |322 | 340 |367 |202 | |323 | 341 |370 |234 | |324 | 342 |371 |233 | |325 | 343 |372 |207 | |326 | 246 |373 |230 | |327 | 242 |374 |235 | |330 | 354 |375 |231 | |331 | 353 |376 |227 | |332 | 247 | | | +---------------+----------------+----------------+---------------+ KOI8-R to MS 1251 For the conversion of KOI8-R to MS 1251, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | KOI8-R | MS 1251 | KOI8-R | MS 1251 | |24 | 4 |317 |356 | |200-237 | 40 |320 |357 | |241 | 220 |321 |377 | |242 | 203 |322 |360 | |243 | 270 |323 |361 | |244 | 272 |324 |362 | |245 | 276 |325 |363 | |246 | 263 |326 |346 | |247 | 277 |327 |342 | |250 | 274 |330 |374 | |251 | 232 |331 |373 | |252 | 234 |332 |347 | |253 | 236 |333 |370 | |254 | 235 |334 |375 | |255 | 210 |335 |371 | |256 | 242 |336 |367 | |257 | 237 |337 |372 | |260 | 271 |340 |336 | |261 | 200 |341 |300 | |262 | 201 |342 |301 | |263 | 250 |343 |326 | |264 | 252 |344 |304 | |265 | 275 |345 |305 | |266 | 262 |346 |324 | |267 | 257 |347 |303 | |270 | 243 |350 |325 | |271 | 212 |351 |310 | |272 | 214 |352 |311 | |273 | 216 |353 |312 | |274 | 215 |354 |313 | |275 | 210 |355 |314 | |276 | 241 |356 |315 | |277 | 217 |357 |316 | |300 | 376 |360 |317 | |301 | 340 |361 |337 | |302 | 341 |362 |320 | |303 | 366 |363 |321 | |304 | 344 |364 |322 | |305 | 345 |365 |323 | |306 | 364 |366 |306 | |307 | 343 |367 |302 | |310 | 365 |370 |334 | |311 | 350 |371 |333 | |312 | 351 |372 |307 | |313 | 352 |373 |330 | |314 | 353 |374 |335 | |315 | 354 |375 |331 | |316 | 355 |376 |327 | |376 | 227 | | | +---------------+----------------+----------------+---------------+ KOI8-R to Mac Cyrillic For the conversion of KOI8-R to Mac Cyrillic, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | KOI8-R | Mac Cyrillic | KOI8-R | Mac Cyrillic | |24 | 4 |317 |356 | |200-237 | 40 |320 |357 | |240 | 312 |321 |337 | |241 | 254 |322 |360 | |242 | 257 |323 |361 | |243 | 336 |324 |362 | |244 | 271 |325 |363 | |245 | 317 |326 |346 | |246 | 264 |327 |342 | |247 | 273 |330 |374 | |250 | 300 |331 |373 | |251 | 275 |332 |347 | |252 | 277 |333 |370 | |253 | 40 |334 |375 | |254 | 316 |335 |371 | |255 | 40 |336 |367 | |256 | 331 |337 |372 | |257 | 333 |340 |236 | |260 | 334 |341 |200 | |261 | 253 |342 |201 | |262 | 256 |343 |226 | |263 | 335 |344 |204 | |264 | 270 |345 |205 | |265 | 301 |346 |224 | |266 | 247 |347 |203 | |267 | 272 |350 |225 | |270 | 267 |351 |210 | |271 | 274 |352 |211 | |272 | 276 |353 |212 | |273 | 40 |354 |213 | |274 | 315 |355 |214 | |275 | 40 |356 |215 | |276 | 330 |357 |216 | |277 | 332 |360 |217 | |300 | 376 |361 |237 | |301 | 340 |362 |220 | |302 | 341 |363 |221 | |303 | 366 |364 |222 | |304 | 344 |365 |223 | |305 | 345 |366 |206 | |306 | 364 |367 |202 | |307 | 343 |370 |234 | |310 | 365 |371 |233 | |311 | 350 |372 |207 | |312 | 351 |373 |230 | |313 | 352 |374 |235 | |314 | 353 |375 |231 | |315 | 354 |376 |227 | |316 | 355 | | | +---------------+----------------+----------------+---------------+ 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_koi8-r(5)
All times are GMT -4. The time now is 08:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy