Search the specific content from the complex file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Search the specific content from the complex file
# 8  
Old 03-28-2017
Hi Team,

Please find as requested.

Code:
[mhcont@CX2-3ODRMAPP2 data]$hexdump -C < datafile | head -n 200
00000000  55 4e 42 1d 49 41 54 42  1f 31 1d 4e 47 49 1d 4f  |UNB.IATB.1.NGI.O|
00000010  4f 53 1d 31 37 30 32 32  30 1f 31 36 30 30 1d 45  |OS.170220.1600.E|
00000020  78 70 6f 72 74 5f 44 75  6d 70 1d 1d 54 52 32 1d  |xport_Dump..TR2.|
00000030  58 1c 55 4e 48 1d 31 1d  49 46 4c 49 52 52 1f 30  |X.UNH.1.IFLIRR.0|
00000040  37 1f 31 1f 31 41 1c 46  44 52 1d 4d 48 1d 31 1d  |7.1.1A.FDR.MH.1.|
00000050  31 39 30 33 31 37 1c 46  44 44 1d 1d 49 4e 54 1c  |190317.FDD..INT.|
00000060  52 45 46 1c 53 54 58 1d  49 4e 41 1c 4c 54 53 1c  |REF.STX.INA.LTS.|
00000070  49 46 44 1d 1d 1d 43 1d  4d 59 52 1d 1d 4e 1c 4c  |IFD...C.MYR..N.L|
00000080  54 53 1c 41 50 44 1d 1f  1f 1f 1f 1f 1f 1f 4c 48  |TS.APD........LH|
00000090  52 1f 4b 55 4c 1c 44 41  54 1d 37 30 38 1f 31 39  |R.KUL.DAT.708.19|
000000a0  30 33 31 37 1f 32 31 33  30 1d 37 30 37 1f 32 30  |0317.2130.707.20|
000000b0  30 33 31 37 1f 31 38 32  35 1c 53 54 58 1d 49 4e  |0317.1825.STX.IN|
000000c0  41 1c 45 51 50 1d 4a 1d  33 38 30 1d 4d 48 1c 45  |A.EQP.J.380.MH.E|
000000d0  51 49 1d 1d 1d 1d 1d 1d  1d 1f 1f 1f 33 38 30 1c  |QI..........380.|
000000e0  45 51 44 1d 1d 1d 1d 1d  1d 30 30 31 1c 53 53 52  |EQD......001.SSR|
000000f0  1d 42 4c 4e 44 1f 1f 31  1c 45 51 4e 1d 30 1f 53  |.BLND..1.EQN.0.S|
00000100  53 52 1d 31 1f 41 56 4c  1c 53 43 49 1d 46 1c 53  |SR.1.AVL.SCI.F.S|
00000110  53 52 1d 42 4c 4e 44 1f  1f 31 1c 45 51 4e 1d 30  |SR.BLND..1.EQN.0|
00000120  1f 53 53 52 1d 31 1f 41  56 4c 1c 53 43 49 1d 4a  |.SSR.1.AVL.SCI.J|
00000130  1c 53 53 52 1d 42 4c 4e  44 1f 1f 33 1c 45 51 4e  |.SSR.BLND..3.EQN|
00000140  1d 30 1f 53 53 52 1d 33  1f 41 56 4c 1c 53 43 49  |.0.SSR.3.AVL.SCI|
00000150  1d 59 1c 53 53 52 1d 42  53 43 54 1f 1f 30 1c 45  |.Y.SSR.BSCT..0.E|
00000160  51 4e 1d 30 1f 53 53 52  1d 30 1f 41 56 4c 1c 53  |QN.0.SSR.0.AVL.S|
00000170  43 49 1d 46 1c 53 53 52  1d 42 53 43 54 1f 1f 35  |CI.F.SSR.BSCT..5|
00000180  1c 45 51 4e 1d 30 1f 53  53 52 1d 35 1f 41 56 4c  |.EQN.0.SSR.5.AVL|
00000190  1c 53 43 49 1d 4a 1c 53  53 52 1d 42 53 43 54 1f  |.SCI.J.SSR.BSCT.|
000001a0  1f 36 1c 45 51 4e 1d 30  1f 53 53 52 1d 36 1f 41  |.6.EQN.0.SSR.6.A|
000001b0  56 4c 1c 53 43 49 1d 59  1c 53 53 52 1d 49 4e 46  |VL.SCI.Y.SSR.INF|
000001c0  1f 1f 30 1c 45 51 4e 1d  30 1f 53 53 52 1d 30 1f  |..0.EQN.0.SSR.0.|
000001d0  41 56 4c 1c 53 43 49 1d  46 1c 53 53 52 1d 49 4e  |AVL.SCI.F.SSR.IN|
000001e0  46 1f 1f 35 1c 45 51 4e  1d 30 1f 53 53 52 1d 35  |F..5.EQN.0.SSR.5|
000001f0  1f 41 56 4c 1c 53 43 49  1d 4a 1c 53 53 52 1d 49  |.AVL.SCI.J.SSR.I|
00000200  4e 46 1f 1f 32 35 1c 45  51 4e 1d 30 1f 53 53 52  |NF..25.EQN.0.SSR|
00000210  1d 32 35 1f 41 56 4c 1c  53 43 49 1d 59 1c 53 53  |.25.AVL.SCI.Y.SS|
00000220  52 1d 55 4d 4e 52 1f 1f  30 1c 45 51 4e 1d 30 1f  |R.UMNR..0.EQN.0.|
00000230  53 53 52 1d 30 1f 41 56  4c 1c 53 43 49 1d 46 1c  |SSR.0.AVL.SCI.F.|
00000240  53 53 52 1d 55 4d 4e 52  1f 1f 30 1c 45 51 4e 1d  |SSR.UMNR..0.EQN.|
00000250  30 1f 53 53 52 1d 30 1f  41 56 4c 1c 53 43 49 1d  |0.SSR.0.AVL.SCI.|
00000260  4a 1c 53 53 52 1d 55 4d  4e 52 1f 1f 31 32 1c 45  |J.SSR.UMNR..12.E|
00000270  51 4e 1d 30 1f 53 53 52  1d 31 32 1f 41 56 4c 1c  |QN.0.SSR.12.AVL.|
00000280  53 43 49 1d 59 1c 4c 45  47 1d 30 30 31 1d 4e 58  |SCI.Y.LEG.001.NX|
00000290  43 1c 45 51 49 1d 46 1f  38 1f 53 1d 46 1f 38 1f  |C.EQI.F.8.S.F.8.|
000002a0  41 1c 43 42 4c 1d 30 1d  30 1d 30 1d 1d 1d 1d 30  |A.CBL.0.0.0....0|
000002b0  1d 38 1d 1d 30 1c 45 51  4e 1d 31 30 30 1f 43 4f  |.8..0.EQN.100.CO|
000002c0  46 1c 43 42 41 1d 30 1d  30 1d 38 1d 38 1d 30 1d  |F.CBA.0.0.8.8.0.|
000002d0  30 1c 45 51 49 1d 4a 1f  36 36 1f 53 1d 4a 1f 36  |0.EQI.J.66.S.J.6|
000002e0  34 1f 41 1c 43 42 4c 1d  30 1d 30 1d 30 1d 1d 1d  |4.A.CBL.0.0.0...|
000002f0  1d 30 1d 36 34 1d 1d 30  1d 5a 1f 1f 32 1c 45 51  |.0.64..0.Z..2.EQ|
00000300  4e 1d 31 30 30 1f 43 4f  46 1c 43 42 41 1d 30 1d  |N.100.COF.CBA.0.|
00000310  30 1d 36 34 1d 36 34 1d  30 1d 30 1c 45 51 49 1d  |0.64.64.0.0.EQI.|
00000320  59 1f 34 32 30 1f 53 1d  59 1f 34 31 35 1f 41 1c  |Y.420.S.Y.415.A.|
00000330  43 42 4c 1d 30 1d 30 1d  30 1d 1d 1d 1d 30 1d 33  |CBL.0.0.0....0.3|
00000340  39 39 1d 1d 30 1d 5a 1f  1f 35 1c 45 51 4e 1d 31  |99..0.Z..5.EQN.1|
00000350  30 30 1f 43 4f 46 1c 43  42 41 1d 30 1d 31 36 1d  |00.COF.CBA.0.16.|
00000360  33 39 39 1d 33 39 39 1d  30 1d 31 36 1c 4f 44 49  |399.399.0.16.ODI|
00000370  1d 4c 48 52 1d 4b 55 4c  1c 44 41 54 1d 37 30 38  |.LHR.KUL.DAT.708|
00000380  1f 31 39 30 33 31 37 1f  32 31 33 30 1d 37 30 37  |.190317.2130.707|
00000390  1f 32 30 30 33 31 37 1f  31 38 32 35 1c 53 54 58  |.200317.1825.STX|
000003a0  1d 4d 41 4e 1f 30 1d 43  4c 53 1f 30 1c 53 43 49  |.MAN.0.CLS.0.SCI|
000003b0  1d 46 1d 1d 30 1d 30 1d  30 1d 30 1d 30 1d 30 1c  |.F..0.0.0.0.0.0.|
000003c0  54 42 55 1d 1d 1d 1d 30  1c 50 44 49 1d 1d 46 1c  |TBU....0.PDI..F.|
000003d0  43 4c 41 1d 31 30 1c 53  42 49 1d 30 1c 53 42 43  |CLA.10.SBI.0.SBC|
000003e0  1d 30 1d 1d 1d 1d 47 52  1f 52 45 44 1f 57 4c 1f  |.0....GR.RED.WL.|
000003f0  57 4c 43 1d 1f 1f 1f 38  1d 1f 1f 30 1f 30 1d 30  |WLC....8...0.0.0|
00000400  1f 30 1f 30 1f 30 1f 30  1f 30 1d 4c 38 1d 38 1f  |.0.0.0.0.0.L8.8.|
00000410  38 1f 30 1c 41 54 43 1d  1d 53 4c 43 1f 59 1d 53  |8.0.ATC..SLC.Y.S|
00000420  4c 53 1f 59 1c 50 44 49  1d 1d 41 1c 43 4c 41 1d  |LS.Y.PDI..A.CLA.|
00000430  31 30 1c 53 42 49 1d 30  1c 53 42 43 1d 30 1d 1d  |10.SBI.0.SBC.0..|
00000440  1d 1d 47 52 1f 52 45 44  1f 57 4c 1f 57 4c 43 1d  |..GR.RED.WL.WLC.|
00000450  1f 1f 1f 33 1f 1f 1f 1f  1f 1f 46 30 1f 32 1d 1f  |...3......F0.2..|
00000460  1f 30 1f 30 1d 30 1f 30  1f 30 1f 30 1f 30 1f 30  |.0.0.0.0.0.0.0.0|
00000470  1d 4c 33 1d 33 1f 33 1f  30 1c 41 54 43 1d 1d 53  |.L3.3.3.0.ATC..S|
00000480  4c 43 1f 59 1d 53 4c 53  1f 59 1c 50 44 49 1d 1d  |LC.Y.SLS.Y.PDI..|
00000490  50 1c 43 4c 41 1d 31 30  1c 53 42 49 1d 30 1c 53  |P.CLA.10.SBI.0.S|
000004a0  42 43 1d 30 1d 1d 1d 1d  52 45 44 1f 53 54 41 1f  |BC.0....RED.STA.|
000004b0  57 4c 1f 57 4c 43 1d 1f  1f 1f 31 1f 1f 1f 1f 1f  |WL.WLC....1.....|
000004c0  1f 41 30 1f 31 1d 1f 1f  30 1f 30 1d 30 1f 30 1f  |.A0.1...0.0.0.0.|
000004d0  30 1f 30 1f 30 1f 30 1d  4c 31 1d 31 1f 31 1f 30  |0.0.0.0.L1.1.1.0|
000004e0  1c 41 54 43 1d 1d 53 4c  43 1f 59 1d 53 4c 53 1f  |.ATC..SLC.Y.SLS.|
000004f0  59 1c 53 43 49 1d 4a 1d  1d 30 1d 30 1d 30 1d 30  |Y.SCI.J..0.0.0.0|
00000500  1d 30 1d 39 39 1c 54 42  55 1d 1d 1d 1d 30 1c 50  |.0.99.TBU....0.P|
00000510  44 49 1d 1d 4a 1c 43 4c  41 1d 31 30 1c 53 42 49  |DI..J.CLA.10.SBI|
00000520  1d 30 1c 53 42 43 1d 30  1d 1d 1d 1d 47 52 1f 52  |.0.SBC.0....GR.R|
00000530  45 44 1f 57 4c 1f 57 4c  43 1d 1f 1f 1f 36 34 1d  |ED.WL.WLC....64.|
00000540  1f 1f 30 1f 30 1d 30 1f  30 1f 30 1f 30 1f 30 1f  |..0.0.0.0.0.0.0.|
00000550  30 1d 4c 39 1d 36 34 1f  36 34 1f 30 1c 41 54 43  |0.L9.64.64.0.ATC|
00000560  1d 1d 53 4c 43 1f 59 1d  53 4c 53 1f 59 1c 50 44  |..SLC.Y.SLS.Y.PD|
00000570  49 1d 1d 43 1c 43 4c 41  1d 31 30 1c 53 42 49 1d  |I..C.CLA.10.SBI.|
00000580  30 1c 53 42 43 1d 30 1d  1d 1d 1d 47 52 1f 52 45  |0.SBC.0....GR.RE|
00000590  44 1f 57 4c 1f 57 4c 43  1d 1f 1f 1f 36 34 1f 1f  |D.WL.WLC....64..|
000005a0  1f 1f 1f 1f 4a 30 1d 1f  1f 30 1f 30 1d 30 1f 30  |....J0...0.0.0.0|
000005b0  1f 30 1f 30 1f 30 1f 30  1d 4c 39 1d 36 34 1f 36  |.0.0.0.0.L9.64.6|
000005c0  34 1f 30 1c 41 54 43 1d  1d 53 4c 43 1f 59 1d 53  |4.0.ATC..SLC.Y.S|
000005d0  4c 53 1f 59 1c 50 44 49  1d 1d 44 1c 43 4c 41 1d  |LS.Y.PDI..D.CLA.|
000005e0  31 30 1c 53 42 49 1d 30  1c 53 42 43 1d 30 1d 1d  |10.SBI.0.SBC.0..|
000005f0  1d 1d 47 52 1f 52 45 44  1f 57 4c 43 1d 1f 1f 1f  |..GR.RED.WLC....|
00000600  33 38 1f 1f 1f 1f 1f 1f  43 30 1f 32 30 1d 1f 1f  |38......C0.20...|
00000610  30 1f 30 1d 30 1f 30 1f  30 1f 30 1f 30 1f 30 1d  |0.0.0.0.0.0.0.0.|
00000620  4c 39 1d 33 38 1f 33 38  1f 30 1c 41 54 43 1d 1d  |L9.38.38.0.ATC..|
00000630  53 4c 43 1f 59 1d 53 4c  53 1f 59 1c 50 44 49 1d  |SLC.Y.SLS.Y.PDI.|
00000640  1d 5a 1c 43 4c 41 1d 31  30 1c 53 42 49 1d 30 1c  |.Z.CLA.10.SBI.0.|
00000650  53 42 43 1d 30 1d 1d 1d  1d 47 52 1f 57 4c 43 1d  |SBC.0....GR.WLC.|
00000660  1f 1f 1f 31 38 1f 1f 1f  1f 1f 1f 44 30 1f 31 35  |...18......D0.15|
00000670  1d 1f 1f 30 1f 30 1d 30  1f 30 1f 30 1f 30 1f 30  |...0.0.0.0.0.0.0|
00000680  1f 30 1d 4c 39 1d 31 38  1f 31 38 1f 30 1c 41 54  |.0.L9.18.18.0.AT|
00000690  43 1d 1d 53 4c 43 1f 59  1d 53 4c 53 1f 59 1c 50  |C..SLC.Y.SLS.Y.P|
000006a0  44 49 1d 1d 49 1c 43 4c  41 1d 31 30 1c 53 42 49  |DI..I.CLA.10.SBI|
000006b0  1d 30 1c 53 42 43 1d 30  1d 1d 1d 1d 52 45 44 1f  |.0.SBC.0....RED.|
000006c0  53 54 41 1f 57 4c 1f 57  4c 43 1d 1f 1f 1f 33 1f  |STA.WL.WLC....3.|
000006d0  1f 1f 1f 1f 1f 5a 30 1f  32 1d 1f 1f 30 1f 30 1d  |.....Z0.2...0.0.|
000006e0  30 1f 30 1f 30 1f 30 1f  30 1f 30 1d 4c 33 1d 33  |0.0.0.0.0.0.L3.3|
000006f0  1f 33 1f 30 1c 41 54 43  1d 1d 53 4c 43 1f 59 1d  |.3.0.ATC..SLC.Y.|
00000700  53 4c 53 1f 59 1c 50 44  49 1d 1d 57 1c 43 4c 41  |SLS.Y.PDI..W.CLA|
00000710  1d 31 30 1c 53 42 49 1d  30 1c 53 42 43 1d 30 1d  |.10.SBI.0.SBC.0.|
00000720  1d 1d 1d 57 4c 1f 57 4c  43 1d 1f 1f 1f 36 34 1d  |...WL.WLC....64.|
00000730  1f 1f 30 1f 30 1d 30 1f  30 1f 30 1f 30 1f 30 1f  |..0.0.0.0.0.0.0.|
00000740  30 1d 4c 39 1d 36 34 1f  36 34 1f 30 1c 41 54 43  |0.L9.64.64.0.ATC|
00000750  1d 1d 53 4c 43 1f 59 1d  53 4c 53 1f 59 1c 50 44  |..SLC.Y.SLS.Y.PD|
00000760  49 1d 1d 55 1c 43 4c 41  1d 31 30 1c 53 42 49 1d  |I..U.CLA.10.SBI.|
00000770  30 1c 53 42 43 1d 30 1d  1d 1d 1d 47 52 1f 52 45  |0.SBC.0....GR.RE|
00000780  44 1f 53 54 41 1f 57 4c  1f 57 4c 43 1d 1f 1f 1f  |D.STA.WL.WLC....|
00000790  31 1f 1f 1f 1f 1f 1f 49  30 1f 31 1d 1f 1f 30 1f  |1......I0.1...0.|
000007a0  30 1d 30 1f 30 1f 30 1f  30 1f 30 1f 30 1d 4c 31  |0.0.0.0.0.0.0.L1|
000007b0  1d 31 1f 31 1f 30 1c 41  54 43 1d 1d 53 4c 43 1f  |.1.1.0.ATC..SLC.|
000007c0  59 1d 53 4c 53 1f 59 1c  53 43 49 1d 59 1d 1d 30  |Y.SLS.Y.SCI.Y..0|
000007d0  1d 31 36 1d 30 1d 31 36  1d 30 1d 39 39 1c 54 42  |.16.0.16.0.99.TB|
000007e0  55 1d 1d 1d 1d 30 1c 50  44 49 1d 1d 59 1c 43 4c  |U....0.PDI..Y.CL|
000007f0  41 1d 31 30 1c 53 42 49  1d 30 1c 53 42 43 1d 30  |A.10.SBI.0.SBC.0|
00000800  1d 1d 1d 1d 47 52 1f 52  45 44 1f 57 4c 1f 57 4c  |....GR.RED.WL.WL|
00000810  43 1d 1f 1f 1f 34 31 35  1d 1f 1f 30 1f 30 1d 30  |C....415...0.0.0|
00000820  1f 30 1f 30 1f 30 1f 30  1f 30 1d 4c 39 1d 33 39  |.0.0.0.0.0.L9.39|
00000830  39 1f 33 39 39 1f 30 1c  41 54 43 1d 1d 53 4c 43  |9.399.0.ATC..SLC|
00000840  1f 59 1d 53 4c 53 1f 59  1c 50 44 49 1d 1d 42 1c  |.Y.SLS.Y.PDI..B.|
00000850  43 4c 41 1d 31 30 1c 53  42 49 1d 30 1c 53 42 43  |CLA.10.SBI.0.SBC|
00000860  1d 30 1d 1d 1d 1d 47 52  1f 52 45 44 1f 57 4c 1f  |.0....GR.RED.WL.|
00000870  57 4c 43 1d 1f 1f 1f 34  31 35 1f 1f 1f 1f 1f 1f  |WLC....415......|
00000880  59 30 1d 1f 1f 30 1f 30  1d 30 1f 30 1f 30 1f 30  |Y0...0.0.0.0.0.0|
00000890  1f 30 1f 30 1d 4c 39 1d  33 39 39 1f 33 39 39 1f  |.0.0.L9.399.399.|
000008a0  30 1c 41 54 43 1d 1d 53  4c 43 1f 59 1d 53 4c 53  |0.ATC..SLC.Y.SLS|
000008b0  1f 59 1c 50 44 49 1d 1d  48 1c 43 4c 41 1d 31 30  |.Y.PDI..H.CLA.10|
000008c0  1c 53 42 49 1d 30 1c 53  42 43 1d 30 1d 1d 1d 1d  |.SBI.0.SBC.0....|
000008d0  47 52 1f 52 45 44 1f 57  4c 1f 57 4c 43 1d 1f 1f  |GR.RED.WL.WLC...|
000008e0  1f 34 31 35 1f 1f 1f 1f  1f 1f 42 30 1d 1f 1f 30  |.415......B0...0|
000008f0  1f 30 1d 30 1f 30 1f 30  1f 30 1f 30 1f 30 1d 4c  |.0.0.0.0.0.0.0.L|
00000900  39 1d 33 39 39 1f 33 39  39 1f 30 1c 41 54 43 1d  |9.399.399.0.ATC.|
00000910  1d 53 4c 43 1f 59 1d 53  4c 53 1f 59 1c 50 44 49  |.SLC.Y.SLS.Y.PDI|
00000920  1d 1d 4b 1c 43 4c 41 1d  31 30 1c 53 42 49 1d 30  |..K.CLA.10.SBI.0|
00000930  1c 53 42 43 1d 30 1d 1d  1d 1d 47 52 1f 52 45 44  |.SBC.0....GR.RED|
00000940  1f 57 4c 43 1d 1f 1f 1f  34 31 35 1f 1f 1f 1f 1f  |.WLC....415.....|
00000950  1f 48 30 1d 1f 1f 30 1f  30 1d 30 1f 30 1f 30 1f  |.H0...0.0.0.0.0.|
00000960  30 1f 30 1f 30 1d 4c 39  1d 33 39 39 1f 33 39 39  |0.0.0.L9.399.399|
00000970  1f 30 1c 41 54 43 1d 1d  53 4c 43 1f 59 1d 53 4c  |.0.ATC..SLC.Y.SL|
00000980  53 1f 59 1c 50 44 49 1d  1d 4d 1c 43 4c 41 1d 31  |S.Y.PDI..M.CLA.1|
00000990  30 1c 53 42 49 1d 30 1c  53 42 43 1d 30 1d 1d 1d  |0.SBI.0.SBC.0...|
000009a0  1d 47 52 1f 52 45 44 1f  57 4c 43 1d 1f 1f 1f 34  |.GR.RED.WLC....4|
000009b0  31 35 1f 1f 1f 1f 1f 1f  4b 30 1d 1f 1f 30 1f 30  |15......K0...0.0|
000009c0  1d 30 1f 30 1f 30 1f 30  1f 30 1f 30 1d 4c 39 1d  |.0.0.0.0.0.0.L9.|
000009d0  33 39 39 1f 33 39 39 1f  30 1c 41 54 43 1d 1d 53  |399.399.0.ATC..S|
000009e0  4c 43 1f 59 1d 53 4c 53  1f 59 1c 50 44 49 1d 1d  |LC.Y.SLS.Y.PDI..|
000009f0  4c 1c 43 4c 41 1d 31 30  1c 53 42 49 1d 30 1c 53  |L.CLA.10.SBI.0.S|
00000a00  42 43 1d 30 1d 1d 1d 1d  47 52 1f 52 45 44 1f 57  |BC.0....GR.RED.W|
00000a10  4c 43 1d 1f 1f 1f 34 31  35 1f 1f 1f 1f 1f 1f 4d  |LC....415......M|
00000a20  30 1d 1f 1f 30 1f 30 1d  30 1f 30 1f 30 1f 30 1f  |0...0.0.0.0.0.0.|
00000a30  30 1f 30 1d 4c 39 1d 33  39 39 1f 33 39 39 1f 30  |0.0.L9.399.399.0|
00000a40  1c 41 54 43 1d 1d 53 4c  43 1f 59 1d 53 4c 53 1f  |.ATC..SLC.Y.SLS.|
00000a50  59 1c 50 44 49 1d 1d 56  1c 43 4c 41 1d 31 30 1c  |Y.PDI..V.CLA.10.|
00000a60  53 42 49 1d 30 1c 53 42  43 1d 30 1d 1d 1d 1d 47  |SBI.0.SBC.0....G|
00000a70  52 1f 52 45 44 1f 57 4c  43 1d 1f 1f 1f 32 32 35  |R.RED.WLC....225|
00000a80  1f 1f 1f 1f 1f 1f 4c 30  1f 31 30 30 1d 1f 1f 30  |......L0.100...0|
00000a90  1f 30 1d 30 1f 30 1f 30  1f 30 1f 30 1f 30 1d 4c  |.0.0.0.0.0.0.0.L|
00000aa0  39 1d 32 30 39 1f 32 30  39 1f 30 1c 41 54 43 1d  |9.209.209.0.ATC.|
00000ab0  1d 53 4c 43 1f 59 1d 53  4c 53 1f 59 1c 50 44 49  |.SLC.Y.SLS.Y.PDI|
00000ac0  1d 1d 53 1c 43 4c 41 1d  31 30 1c 53 42 49 1d 30  |..S.CLA.10.SBI.0|
00000ad0  1c 53 42 43 1d 30 1d 1d  1d 1d 47 52 1f 52 45 44  |.SBC.0....GR.RED|
00000ae0  1f 57 4c 43 1d 1f 1f 1f  31 32 35 1f 1f 1f 1f 1f  |.WLC....125.....|
00000af0  1f 56 30 1f 35 30 1d 1f  1f 30 1f 30 1d 30 1f 30  |.V0.50...0.0.0.0|
00000b00  1f 30 1f 30 1f 30 1f 30  1d 4c 39 1d 31 30 39 1f  |.0.0.0.0.L9.109.|
00000b10  31 30 39 1f 30 1c 41 54  43 1d 1d 53 4c 43 1f 59  |109.0.ATC..SLC.Y|
00000b20  1d 53 4c 53 1f 59 1c 50  44 49 1d 1d 4e 1c 43 4c  |.SLS.Y.PDI..N.CL|
00000b30  41 1d 31 30 1c 53 42 49  1d 30 1c 53 42 43 1d 30  |A.10.SBI.0.SBC.0|
00000b40  1d 1d 1d 1d 47 52 1f 57  4c 43 1d 1f 1f 1f 37 35  |....GR.WLC....75|
00000b50  1f 1f 1f 1f 1f 1f 53 30  1f 33 30 1d 1f 1f 30 1f  |......S0.30...0.|
00000b60  30 1d 30 1f 30 1f 30 1f  30 1f 30 1f 30 1d 4c 39  |0.0.0.0.0.0.0.L9|
00000b70  1d 35 39 1f 35 39 1f 30  1c 41 54 43 1d 1d 53 4c  |.59.59.0.ATC..SL|
00000b80  43 1f 59 1d 53 4c 53 1f  59 1c 50 44 49 1d 1d 51  |C.Y.SLS.Y.PDI..Q|
00000b90  1c 43 4c 41 1d 31 30 1c  53 42 49 1d 30 1c 53 42  |.CLA.10.SBI.0.SB|
00000ba0  43 1d 30 1d 1d 1d 1d 47  52 1f 57 4c 43 1d 1f 1f  |C.0....GR.WLC...|
00000bb0  1f 34 35 1f 1f 1f 1f 1f  1f 4e 30 1f 32 30 1d 1f  |.45......N0.20..|
00000bc0  1f 30 1f 30 1d 30 1f 30  1f 30 1f 30 1f 30 1f 30  |.0.0.0.0.0.0.0.0|
00000bd0  1d 4c 39 1d 32 39 1f 32  39 1f 30 1c 41 54 43 1d  |.L9.29.29.0.ATC.|
00000be0  1d 53 4c 43 1f 59 1d 53  4c 53 1f 59 1c 50 44 49  |.SLC.Y.SLS.Y.PDI|
00000bf0  1d 1d 4f 1c 43 4c 41 1d  31 30 1c 53 42 49 1d 30  |..O.CLA.10.SBI.0|
00000c00  1c 53 42 43 1d 30 1d 1d  1d 1d 47 52 1f 57 4c 43  |.SBC.0....GR.WLC|
00000c10  1d 1f 1f 1f 32 35 1f 1f  1f 1f 1f 1f 51 30 1f 31  |....25......Q0.1|
00000c20  30 1d 1f 1f 30 1f 30 1d  31 36 1f 30 1f 30 1f 30  |0...0.0.16.0.0.0|
00000c30  1f 30 1f 31 36 1d 4c 39  1d 39 1f 39 1f 30 1c 41  |.0.16.L9.9.9.0.A|
00000c40  54 43 1d 1d 53 4c 43 1f  59 1d 53 4c 53 1f 59 1c  |TC..SLC.Y.SLS.Y.|
00000c50  50 44 49 1d 1d 45 1c 43  4c 41 1d 31 30 1c 53 42  |PDI..E.CLA.10.SB|
00000c60  49 1d 30 1c 53 42 43 1d  30 1d 1d 1d 1d 57 4c 1f  |I.0.SBC.0....WL.|
00000c70  57 4c 43 1d 1f 1f 1f 31  35 1f 1f 1f 1f 1f 1f 4f  |WLC....15......O|

# 9  
Old 03-29-2017
There is no AFDR string in the file.


Code:
37 1f 31 1f 31 41 1c 46  44 52 1d 4d 48 1d 31 1d  |7.1.1A.FDR.MH.1.|

The dot is an unprintable character. ASCII 28 0x1C FS File Separator, and end of file mark. UNIX ignores it. DOS will not ignore it.

In fact your file has a large number of unprintable characters. Next time consider using
Code:
    cat -v filename

to detect this problem.
# 10  
Old 03-30-2017
Adapting my earlier attempts to this new information:

Code:
awk '{ $1=$1 } 1' RS="A\x1cFDR" ORS="\n" FS="\n" OFS="\n" inputfile

If that works, you can update it to find your record of interest, too:

Code:
awk '{ $1=$1 } $0 ~ SEARCH' SEARCH="mystring" RS="A\x1cFDR" ORS="\n" FS="\n" OFS="\n" inputfile

# 11  
Old 03-30-2017
@Corona688: Help me out, please - why the FS="\n"? There don't seem to be any in the binary data...?
# 12  
Old 03-30-2017
Wow, you're right, there's nothing... Hum. Needs more thought.
# 13  
Old 03-30-2017
A more complete sample of your data file is required, I think.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Search for a specific String in a log file for a specific date range

Hi, I have log file which rolls out every second which is as this. HttpGenRequest - -<!--OXi dbPublish--> <created="2014-03-24 23:45:37" lastMsgId="" requestTime="0.0333"> <response request="getOutcomeDetails" code="114" message="Request found no matching data" debug="" provider="undefined"/>... (3 Replies)
Discussion started by: karthikprakash
3 Replies

2. Shell Programming and Scripting

Search specific name in a file and fetch specific entries

Hi all, I have 2 files, One file contain data like this FHIT CS CHRM1 PDE3A PDE3B HSP90AA1 PTK2 HTR1A ESR1 PARP1 PLA2G1B These names are mentioned in the second file(Please see attached second file) as (7 Replies)
Discussion started by: manigrover
7 Replies

3. Shell Programming and Scripting

Urgent request to consider:Search specific name in a file and fetch specific entries

Hi all, I have 2 files, One file contain data like this FHIT CS CHRM1 PDE3A PDE3B HSP90AA1 PTK2 HTR1A ESR1 PARP1 PLA2G1B These names are mentioned in the second file(Please see attached second file) as # Drug_Target_X_Gene_Name:(Where X can be any number (1-1000) (1 Reply)
Discussion started by: manigrover
1 Replies

4. Shell Programming and Scripting

want to search some content of the file with specific to user

I have some users in one unix system and i want to search some files with specific to user and then i want to find some content inside that file so can u help me how we can implement it? File location is as below. /pools/home_unix/cmadireddy/work/models/model/ cmadireddy is user name. now... (6 Replies)
Discussion started by: lathigara
6 Replies

5. Shell Programming and Scripting

search 3 file and write to 4th file (a bit complex)

hi buddies; rollbackip.txt:10.14.3.65 2 10.14.3.65 3 ... lookup.txt: ... 10.14.3.65 2 10.14.5.55 1 55 10.14.6.66 1 66 10.14.3.65 3 10.14.7.77 3 77 10.14.8.88 2 88 10.14.9.99 4 99 ... ip-port.txt ... port111 3 10.14.5.55 57 port111 2 10.14.5.55 51 port111 1 10.14.5.55 59 ->... (7 Replies)
Discussion started by: gc_sw
7 Replies

6. Shell Programming and Scripting

Extract specific content from a file

My input file: >sequence_1 ASSSSSSSSSSSDDDDDDDDDDDCCCCCCC ASDSFDFFDFDFFWERERERERFSDFESFSFD >sequence_2 ASDFDFDFFDDFFDFDSFDSFDFSDFSDFDSFASDSADSADASD ASDFFDFDFASFASFASFAFSFFSDASFASFASFAFS >sequence_3 VEDFGSDGSDGSDGSDGSDGSDGSDG dDFSDFSDFSDFSDFSDFSDFSDFSDF SDGFDGSFDGSGSDGSDGSDGSDGSDG My... (22 Replies)
Discussion started by: patrick87
22 Replies

7. Shell Programming and Scripting

Remove specific content in a file

Hi, I have a file called fl_list consists of files i have to archive. I want to create a exception parm called except_parm, so if it finds the directory it will not archive these files and remove from fl_list. $ cat fl_list /apps/dev/ihub/ready/IA003B/IA003B_Deal_Header_yyyymmdd_hhmmss.txt... (1 Reply)
Discussion started by: k9cheung
1 Replies

8. AIX

find for specific content in file in the directory and list only file names

Hi, I am trying to find the content of file using grep and find command and list only the file names but i am getting entire file list of files in the directory find . -exec grep "test" {} \; -ls Can anyone of you correct this (2 Replies)
Discussion started by: madhu_Jagarapu
2 Replies

9. UNIX for Dummies Questions & Answers

grep/cat/more -- search in a txt file and display content from a specific "keyword"

Hi, I have a .txt file Sample: ===================== NEXT HOST ===================== AEADBAS001 ip access-list extended BLA_Incoming_Filter ip access-list extended BLA_Outgoing_Filter access-list 1 permit xxxxxxxxxxxxxx access-list 2 permit xxxxxxxxxxxxxx =====================... (4 Replies)
Discussion started by: I-1
4 Replies

10. UNIX for Dummies Questions & Answers

How to search files containing a specific word in the content

Hi all, Lets say I have 3 files a.txt and b.txt and c.txt. a.txt has the following text ==================== apple is good for health b.txt has the following text ==================== apple is pomme in french c.txt has the following text ==================== orange has citric acid... (1 Reply)
Discussion started by: amjath78
1 Replies
Login or Register to Ask a Question