Sponsored Content
Full Discussion: sort out the required data
Top Forums UNIX for Advanced & Expert Users sort out the required data Post 302310207 by colemar on Friday 24th of April 2009 04:46:40 AM
Old 04-24-2009
Quote:
Originally Posted by imas
Good catch, however how to get rid of this issue.
It starts to get too cumbersome to do with sed alone.
I would switch to awk.
Check if the code provided by ghostdog74 works as expected.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

grep required data from two columns

hello, I have output from a command and I need to filter some info out of that. I tried awk command but I can not grep what I am looking for: Following is the output and I need to capture "disabled" for each volume from first column and report: # vol status Volume State ... (2 Replies)
Discussion started by: za_7565
2 Replies

2. UNIX and Linux Applications

Get the data in my required form using gawk

i had the data in the following form: Branch : 3379 As On : 31-JAN-2009 Page : 1 User Id : OPER1 Date & Time : 01-FEB-2009 04:02:37 ... (2 Replies)
Discussion started by: KANNI786
2 Replies

3. Shell Programming and Scripting

[Solved] Messaging data into required report

Hello to all; hope someone can assist me in getting the required output that my manager is expecting. I have been able to generate this code which does the comparison of the files and creates the file called diff_fuss_file.txt $ vi fussrpt.pl #!/usr/bin/perl #cd /tmp #rm output.txt ... (2 Replies)
Discussion started by: gvolpini
2 Replies

4. Shell Programming and Scripting

Perl script required for processing the data

I have following result.log file (always has 2 lines) which I need to process, cat result.log name.cmd.method,"result","abc","xyz"; name="hello,mine.12345,"&"tree"&" xyz "&" tree "&" xyz", data="way,"&" 1"&"rate-me"&"1"&"rate-me",str="",ret=""; now I need to extract the strings/data as... (4 Replies)
Discussion started by: perlDiva
4 Replies

5. Shell Programming and Scripting

Want to sort a file using awk & sed to get required output

Hi All, Need Suggestion, Want to sort a file using awk & sed to get required, output as below, such that each LUN shows correct WWPN and FA port Numbers correctly: Required output: 01FB 10000000c97843a2 8C 0 01FB 10000000c96fb279 9C 0 22AF 10000000c97843a2 8C 0 22AF 10000000c975adbd ... (10 Replies)
Discussion started by: aix_admin_007
10 Replies

6. UNIX for Advanced & Expert Users

Alternative to sort -ur +1 required

I've got scripts trawling the network and dumping parsed text into files with an Epoch timestamp in column 1. I append the old data to the new data then just want to keep the top entry if there is an identical duplicate below (column 1 needs to be ignored). sort -ur +1 works a treat on a Solaris... (16 Replies)
Discussion started by: Mike Smith
16 Replies

7. Shell Programming and Scripting

Need to cut a some required data from file

Data_Consolidation_Engine_Part_2_Job2..TgtArBkt: ORA-00942: table or view does not exist I have some thing like above in the file.. Upto this portion Data_Consolidation_Engine_Part_2_Job2..TgtArBkt: the length can be vary .. Can some one help me in taking this portion alone ORA-00942:... (7 Replies)
Discussion started by: saj
7 Replies

8. Shell Programming and Scripting

Help Need to fetch the required data

Hi Guys, Am in need of your help one more time on my real data. I have a file which contains more than thousand lines of data Live data shown for 4 iterations. We have more than thousand lines of data:- -------------------------------------------------------------------------- ... (4 Replies)
Discussion started by: rocky2013
4 Replies

9. Shell Programming and Scripting

How to Modify a file content in UNIX and sort for only required fields ?

I have the below contents in a file after making the below curl call curl ... | grep -E "state|Rno" | paste -sd',\n' | grep "Disconnected" > test "state" : "Disconnected",, "Rno" : "5554f1d2" "state" : "Disconnected",, "Rno" : "10587563" "state" : "Disconnected",, "Rno" :... (2 Replies)
Discussion started by: Vaibhav H
2 Replies

10. Shell Programming and Scripting

Fetching the required data out of a tabular form

Hello Gurus, I am trying to fetch a required number of lines from an output of a command which is in tabular form. Below is the command for reference along with how the result is being shown on UNIX shell. /usr/openv/volmgr/bin/vmquery -b -p 5 The result of the above command is as... (6 Replies)
Discussion started by: Ali Sarwar
6 Replies
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)
All times are GMT -4. The time now is 07:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy