PROBLEM with another binary file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting PROBLEM with another binary file
# 1  
Old 01-19-2015
PROBLEM with another binary file

Hello,

I want to parse another file, i just want the ascii content, here the result of command
Code:
od -bc file

Code:
0000000   036 000 024 000 000 000 377 376 377 010 060 000 060 000 060 000
         036  \0 024  \0  \0  \0 377 376 377  \b   0  \0   0  \0   0  \0
0000020   060 000 062 000 106 000 066 000 104 000 377 376 377 000 377 376
           0  \0   2  \0   F  \0   6  \0   D  \0 377 376 377  \0 377 376
0000040   377 000 377 376 377 000 000 000 000 000 377 376 377 010 060 000
         377  \0 377 376 377  \0  \0  \0  \0  \0 377 376 377  \b   0  \0
0000060   060 000 060 000 060 000 062 000 106 000 065 000 123 000 377 376
           0  \0   0  \0   0  \0   2  \0   F  \0   5  \0   S  \0 377 376
0000100   377 000 377 376 377 000 377 376 377 000 001 000 000 000 377 376
         377  \0 377 376 377  \0 377 376 377  \0 001  \0  \0  \0 377 376
0000120   377 010 060 000 060 000 060 000 060 000 062 000 106 000 066 000
         377  \b   0  \0   0  \0   0  \0   0  \0   2  \0   F  \0   6  \0
0000140   070 000 377 376 377 000 377 376 377 000 377 376 377 000 001 000
           8  \0 377 376 377  \0 377 376 377  \0 377 376 377  \0 001  \0
0000160   000 000 377 376 377 010 060 000 060 000 060 000 060 000 062 000
          \0  \0 377 376 377  \b   0  \0   0  \0   0  \0   0  \0   2  \0
0000200   106 000 066 000 112 000 377 376 377 000 377 376 377 000 377 376
           F  \0   6  \0   J  \0 377 376 377  \0 377 376 377  \0 377 376
0000220   377 000 001 000 000 000 377 376 377 010 060 000 060 000 060 000
         377  \0 001  \0  \0  \0 377 376 377  \b   0  \0   0  \0   0  \0
0000240   060 000 062 000 106 000 066 000 070 000 377 376 377 000 377 376
           0  \0   2  \0   F  \0   6  \0   8  \0 377 376 377  \0 377 376
0000260   377 000 377 376 377 000 001 000 000 000 377 376 377 010 060 000
         377  \0 377 376 377  \0 001  \0  \0  \0 377 376 377  \b   0  \0
0000300   060 000 060 000 060 000 062 000 106 000 065 000 120 000 377 376
           0  \0   0  \0   0  \0   2  \0   F  \0   5  \0   P  \0 377 376
0000320   377 000 377 376 377 000 377 376 377 000 001 000 000 000 377 376
         377  \0 377 376 377  \0 377 376 377  \0 001  \0  \0  \0 377 376
0000340   377 010 060 000 060 000 060 000 060 000 062 000 106 000 066 000
         377  \b   0  \0   0  \0   0  \0   0  \0   2  \0   F  \0   6  \0
0000360   110 000 377 376 377 000 377 376 377 000 377 376 377 000 001 000
           H  \0 377 376 377  \0 377 376 377  \0 377 376 377  \0 001  \0
0000400   000 000 377 376 377 005 102 000 122 000 105 000 101 000 113 000
          \0  \0 377 376 377 005   B  \0   R  \0   E  \0   A  \0   K  \0
0000420   377 376 377 000 377 376 377 000 377 376 377 000 000 000 000 000
         377 376 377  \0 377 376 377  \0 377 376 377  \0  \0  \0  \0  \0
0000440   377 376 377 010 060 000 060 000 060 000 060 000 060 000 102 000
         377 376 377  \b   0  \0   0  \0   0  \0   0  \0   0  \0   B  \0
0000460   132 000 064 000 377 376 377 000 377 376 377 025 107 000 145 000
           Z  \0   4  \0 377 376 377  \0 377 376 377 025   G  \0   e  \0
0000500   156 000 145 000 162 000 151 000 161 000 165 000 145 000 137 000
           n  \0   e  \0   r  \0   i  \0   q  \0   u  \0   e  \0   _  \0
0000520   144 000 145 000 142 000 165 000 164 000 137 000 061 000 071 000
           d  \0   e  \0   b  \0   u  \0   t  \0   _  \0   1  \0   9  \0
0000540   137 000 062 000 060 000 377 376 377 001 061 000 000 000 000 000
           _  \0   2  \0   0  \0 377 376 377 001   1  \0  \0  \0  \0  \0
0000560   377 376 377 010 060 000 060 000 060 000 060 000 062 000 106 000
         377 376 377  \b   0  \0   0  \0   0  \0   0  \0   2  \0   F  \0
0000600   066 000 114 000 377 376 377 000 377 376 377 025 124 000 122 000
           6  \0   L  \0 377 376 377  \0 377 376 377 025   T  \0   R  \0
0000620   061 000 137 000 115 000 101 000 116 000 111 000 106 000 137 000
           1  \0   _  \0   M  \0   A  \0   N  \0   I  \0   F  \0   _  \0
0000640   115 000 117 000 116 000 124 000 120 000 105 000 114 000 114 000
           M  \0   O  \0   N  \0   T  \0   P  \0   E  \0   L  \0   L  \0
0000660   111 000 105 000 122 000 377 376 377 001 063 000 000 000 000 000
           I  \0   E  \0   R  \0 377 376 377 001   3  \0  \0  \0  \0  \0
0000700   377 376 377 010 060 000 060 000 060 000 060 000 062 000 106 000
         377 376 377  \b   0  \0   0  \0   0  \0   0  \0   2  \0   F  \0
0000720   066 000 115 000 377 376 377 000 377 376 377 030 124 000 122 000
           6  \0   M  \0 377 376 377  \0 377 376 377 030   T  \0   R  \0
0000740   062 000 137 000 123 000 124 000 137 000 114 000 101 000 125 000
           2  \0   _  \0   S  \0   T  \0   _  \0   L  \0   A  \0   U  \0
0000760   122 000 105 000 116 000 124 000 137 000 114 000 105 000 137 000
           R  \0   E  \0   N  \0   T  \0   _  \0   L  \0   E  \0   _  \0
0001000   115 000 111 000 116 000 111 000 105 000 122 000 377 376 377 001
           M  \0   I  \0   N  \0   I  \0   E  \0   R  \0 377 376 377 001
0001020   064 000 000 000 000 000 377 376 377 010 060 000 060 000 060 000
           4  \0  \0  \0  \0  \0 377 376 377  \b   0  \0   0  \0   0  \0
0001040   060 000 062 000 106 000 066 000 116 000 377 376 377 000 377 376
           0  \0   2  \0   F  \0   6  \0   N  \0 377 376 377  \0 377 376
0001060   377 020 124 000 122 000 063 000 137 000 112 000 105 000 101 000
         377 020   T  \0   R  \0   3  \0   _  \0   J  \0   E  \0   A  \0
0001100   116 000 105 000 137 000 115 000 101 000 116 000 123 000 117 000
           N  \0   E  \0   _  \0   M  \0   A  \0   N  \0   S  \0   O  \0
0001120   116 000 377 376 377 001 065 000 000 000 000 000 377 376 377 010
           N  \0 377 376 377 001   5  \0  \0  \0  \0  \0 377 376 377  \b
0001140   060 000 060 000 060 000 060 000 062 000 106 000 065 000 132 000
           0  \0   0  \0   0  \0   0  \0   2  \0   F  \0   5  \0   Z  \0
0001160   377 376 377 000 377 376 377 032 123 000 137 000 104 000 117 000
         377 376 377  \0 377 376 377 032   S  \0   _  \0   D  \0   O  \0
0001200   125 000 102 000 114 000 105 000 137 000 115 000 101 000 116 000
           U  \0   B  \0   L  \0   E  \0   _  \0   M  \0   A  \0   N  \0
0001220   111 000 106 000 137 000 115 000 117 000 116 000 124 000 120 000
           I  \0   F  \0   _  \0   M  \0   O  \0   N  \0   T  \0   P  \0
0001240   105 000 114 000 114 000 111 000 105 000 122 000 377 376 377 001
           E  \0   L  \0   L  \0   I  \0   E  \0   R  \0 377 376 377 001
0001260   067 000 000 000 000 000 377 376 377 010 060 000 060 000 060 000
           7  \0  \0  \0  \0  \0 377 376 377  \b   0  \0   0  \0   0  \0
0001300   060 000 062 000 106 000 066 000 060 000 377 376 377 000 377 376
           0  \0   2  \0   F  \0   6  \0   0  \0 377 376 377  \0 377 376
0001320   377 031 123 000 137 000 104 000 105 000 102 000 101 000 124 000
         377 031   S  \0   _  \0   D  \0   E  \0   B  \0   A  \0   T  \0
0001340   137 000 101 000 107 000 117 000 122 000 101 000 137 000 114 000
           _  \0   A  \0   G  \0   O  \0   R  \0   A  \0   _  \0   L  \0
0001360   101 000 137 000 120 000 101 000 111 000 114 000 114 000 101 000
           A  \0   _  \0   P  \0   A  \0   I  \0   L  \0   L  \0   A  \0
0001400   104 000 105 000 377 376 377 001 071 000 000 000 000 000 377 376
           D  \0   E  \0 377 376 377 001   9  \0  \0  \0  \0  \0 377 376
0001420   377 010 060 000 060 000 060 000 060 000 062 000 106 000 065 000
         377  \b   0  \0   0  \0   0  \0   0  \0   2  \0   F  \0   5  \0
0001440   125 000 377 376 377 000 377 376 377 045 115 000 137 000 117 000
           U  \0 377 376 377  \0 377 376 377   %   M  \0   _  \0   O  \0
0001460   106 000 106 000 137 000 107 000 122 000 105 000 126 000 105 000
           F  \0   F  \0   _  \0   G  \0   R  \0   E  \0   V  \0   E  \0
0001500   137 000 103 000 110 000 101 000 125 000 106 000 106 000 105 000
           _  \0   C  \0   H  \0   A  \0   U  \0   F  \0   F  \0   E  \0
0001520   125 000 122 000 123 000 137 000 122 000 117 000 125 000 124 000
           U  \0   R  \0   S  \0   _  \0   R  \0   O  \0   U  \0   T  \0
0001540   111 000 105 000 122 000 123 000 137 000 060 000 137 000 062 000
           I  \0   E  \0   R  \0   S  \0   _  \0   0  \0   _  \0   2  \0
0001560   062 000 137 000 377 376 377 002 061 000 061 000 000 000 000 000
           2  \0   _  \0 377 376 377 002   1  \0   1  \0  \0  \0  \0  \0
0001600   377 376 377 010 060 000 060 000 060 000 060 000 062 000 106 000
         377 376 377  \b   0  \0   0  \0   0  \0   0  \0   2  \0   F  \0
0001620   066 000 103 000 377 376 377 000 377 376 377 020 123 000 137 000
           6  \0   C  \0 377 376 377  \0 377 376 377 020   S  \0   _  \0
0001640   117 000 106 000 106 000 137 000 125 000 123 000 101 000 120 000
           O  \0   F  \0   F  \0   _  \0   U  \0   S  \0   A  \0   P  \0
0001660   137 000 060 000 137 000 062 000 063 000 137 000 377 376 377 002
           _  \0   0  \0   _  \0   2  \0   3  \0   _  \0 377 376 377 002
0001700   061 000 063 000 000 000 000 000 377 376 377 010 060 000 060 000
           1  \0   3  \0  \0  \0  \0  \0 377 376 377  \b   0  \0   0  \0
0001720   060 000 060 000 062 000 106 000 065 000 130 000 377 376 377 000
           0  \0   0  \0   2  \0   F  \0   5  \0   X  \0 377 376 377  \0
0001740   377 376 377 041 115 000 137 000 117 000 106 000 106 000 137 000
         377 376 377   !   M  \0   _  \0   O  \0   F  \0   F  \0   _  \0
0001760   106 000 117 000 117 000 124 000 137 000 115 000 105 000 124 000
           F  \0   O  \0   O  \0   T  \0   _  \0   M  \0   E  \0   T  \0
0002000   132 000 137 000 115 000 117 000 116 000 124 000 120 000 105 000
           Z  \0   _  \0   M  \0   O  \0   N  \0   T  \0   P  \0   E  \0
0002020   114 000 114 000 111 000 105 000 122 000 137 000 060 000 137 000
           L  \0   L  \0   I  \0   E  \0   R  \0   _  \0   0  \0   _  \0
0002040   063 000 063 000 137 000 377 376 377 002 061 000 067 000 000 000
           3  \0   3  \0   _  \0 377 376 377 002   1  \0   7  \0  \0  \0
0002060   000 000 377 376 377 010 060 000 060 000 060 000 060 000 062 000
          \0  \0 377 376 377  \b   0  \0   0  \0   0  \0   0  \0   2  \0
0002100   106 000 066 000 117 000 377 376 377 000 377 376 377 032 103 000
           F  \0   6  \0   O  \0 377 376 377  \0 377 376 377 032   C  \0
0002120   101 000 122 000 124 000 105 000 137 000 123 000 124 000 137 000
           A  \0   R  \0   T  \0   E  \0   _  \0   S  \0   T  \0   _  \0
0002140   114 000 101 000 125 000 122 000 105 000 116 000 124 000 137 000
           L  \0   A  \0   U  \0   R  \0   E  \0   N  \0   T  \0   _  \0
0002160   114 000 105 000 137 000 115 000 111 000 116 000 111 000 105 000
           L  \0   E  \0   _  \0   M  \0   I  \0   N  \0   I  \0   E  \0
0002200   122 000 377 376 377 002 061 000 071 000 000 000 000 000 377 376
           R  \0 377 376 377 002   1  \0   9  \0  \0  \0  \0  \0 377 376
0002220   377 010 060 000 060 000 060 000 060 000 062 000 106 000 066 000
         377  \b   0  \0   0  \0   0  \0   0  \0   2  \0   F  \0   6  \0
0002240   061 000 377 376 377 000 377 376 377 056 123 000 124 000 137 000
           1  \0 377 376 377  \0 377 376 377   .   S  \0   T  \0   _  \0
0002260   114 000 101 000 125 000 122 000 105 000 116 000 124 000 137 000
           L  \0   A  \0   U  \0   R  \0   E  \0   N  \0   T  \0   _  \0
0002300   114 000 105 000 137 000 115 000 111 000 116 000 111 000 105 000
           L  \0   E  \0   _  \0   M  \0   I  \0   N  \0   I  \0   E  \0
0002320   122 000 137 000 116 000 105 000 124 000 124 000 117 000 131 000
           R  \0   _  \0   N  \0   E  \0   T  \0   T  \0   O  \0   Y  \0
0002340   101 000 107 000 105 000 137 000 122 000 111 000 126 000 111 000
           A  \0   G  \0   E  \0   _  \0   R  \0   I  \0   V  \0   I  \0
0002360   105 000 122 000 105 000 123 000 137 000 116 000 111 000 115 000
           E  \0   R  \0   E  \0   S  \0   _  \0   N  \0   I  \0   M  \0
0002400   105 000 123 000 137 000 377 376 377 002 062 000 060 000 000 000
           E  \0   S  \0   _  \0 377 376 377 002   2  \0   0  \0  \0  \0
0002420   000 000 377 376 377 010 060 000 060 000 060 000 060 000 062 000
          \0  \0 377 376 377  \b   0  \0   0  \0   0  \0   0  \0   2  \0
0002440   106 000 062 000 061 000 377 376 377 000 377 376 377 012 114 000
           F  \0   2  \0   1  \0 377 376 377  \0 377 376 377  \n   L  \0
0002460   137 000 105 000 103 000 117 000 106 000 105 000 122 000 115 000
           _  \0   E  \0   C  \0   O  \0   F  \0   E  \0   R  \0   M  \0
0002500   105 000 377 376 377 002 062 000 062 000 000 000 000 000 377 376
           E  \0 377 376 377 002   2  \0   2  \0  \0  \0  \0  \0 377 376
0002520   377 010 060 000 060 000 060 000 060 000 062 000 106 000 066 000
         377  \b   0  \0   0  \0   0  \0   0  \0   2  \0   F  \0   6  \0
0002540   120 000 377 376 377 000 377 376 377 027 103 000 101 000 122 000
           P  \0 377 376 377  \0 377 376 377 027   C  \0   A  \0   R  \0
0002560   124 000 105 000 137 000 101 000 125 000 115 000 117 000 116 000
           T  \0   E  \0   _  \0   A  \0   U  \0   M  \0   O  \0   N  \0
0002600   124 000 137 000 101 000 125 000 102 000 122 000 101 000 103 000
           T  \0   _  \0   A  \0   U  \0   B  \0   R  \0   A  \0   C  \0
0002620   137 000 064 000 070 000 137 000 377 376 377 002 062 000 064 000
           _  \0   4  \0   8  \0   _  \0 377 376 377 002   2  \0   4  \0
0002640   000 000 000 000 377 376 377 010 060 000 060 000 060 000 060 000
          \0  \0  \0  \0 377 376 377  \b   0  \0   0  \0   0  \0   0  \0
0002660   062 000 106 000 066 000 071 000 377 376 377 000 377 376 377 031
           2  \0   F  \0   6  \0   9  \0 377 376 377  \0 377 376 377 031
0002700   114 000 122 000 115 000 137 000 062 000 137 000 101 000 124 000
           L  \0   R  \0   M  \0   _  \0   2  \0   _  \0   A  \0   T  \0
0002720   124 000 122 000 101 000 132 000 111 000 103 000 137 000 105 000
           T  \0   R  \0   A  \0   Z  \0   I  \0   C  \0   _  \0   E  \0
0002740   124 000 137 000 126 000 111 000 107 000 122 000 117 000 125 000
           T  \0   _  \0   V  \0   I  \0   G  \0   R  \0   O  \0   U  \0
0002760   130 000 377 376 377 002 062 000 065 000 000 000 000 000 377 376
           X  \0 377 376 377 002   2  \0   5  \0  \0  \0  \0  \0 377 376
0003000   377 010 060 000 060 000 060 000 060 000 062 000 106 000 066 000
         377  \b   0  \0   0  \0   0  \0   0  \0   2  \0   F  \0   6  \0
0003020   101 000 377 376 377 000 377 376 377 020 114 000 122 000 115 000
           A  \0 377 376 377  \0 377 376 377 020   L  \0   R  \0   M  \0
0003040   137 000 112 000 105 000 101 000 116 000 105 000 137 000 115 000
           _  \0   J  \0   E  \0   A  \0   N  \0   E  \0   _  \0   M  \0
0003060   101 000 116 000 123 000 117 000 116 000 377 376 377 002 062 000
           A  \0   N  \0   S  \0   O  \0   N  \0 377 376 377 002   2  \0
0003100   067 000 000 000 000 000 377 376 377 010 060 000 060 000 060 000
           7  \0  \0  \0  \0  \0 377 376 377  \b   0  \0   0  \0   0  \0
0003120   060 000 062 000 064 000 065 000 113 000 377 376 377 000 377 376
           0  \0   2  \0   4  \0   5  \0   K  \0 377 376 377  \0 377 376
0003140   377 036 126 000 157 000 151 000 170 000 137 000 147 000 145 000
         377 036   V  \0   o  \0   i  \0   x  \0   _  \0   g  \0   e  \0
0003160   156 000 145 000 137 000 146 000 151 000 156 000 137 000 115 000
           n  \0   e  \0   _  \0   f  \0   i  \0   n  \0   _  \0   M  \0
0003200   111 000 130 000 105 000 105 000 137 000 106 000 063 000 122 000
           I  \0   X  \0   E  \0   E  \0   _  \0   F  \0   3  \0   R  \0
0003220   145 000 147 000 151 000 157 000 156 000 163 000 137 000 377 376
           e  \0   g  \0   i  \0   o  \0   n  \0   s  \0   _  \0 377 376
0003240   377 002 062 000 071 000 000 000 000 000 377 376 377 005 102 000
         377 002   2  \0   9  \0  \0  \0  \0  \0 377 376 377 005   B  \0
0003260   122 000 105 000 101 000 113 000 377 376 377 000 377 376 377 000
           R  \0   E  \0   A  \0   K  \0 377 376 377  \0 377 376 377  \0
0003300   377 376 377 000 000 000 000 000 377 376 377 010 060 000 060 000
         377 376 377  \0  \0  \0  \0  \0 377 376 377  \b   0  \0   0  \0
0003320   060 000 060 000 062 000 106 000 066 000 113 000 377 376 377 000
           0  \0   0  \0   2  \0   F  \0   6  \0   K  \0 377 376 377  \0
0003340   377 376 377 000 377 376 377 000 000 000 000 000 377 376 377 010
         377 376 377  \0 377 376 377  \0  \0  \0  \0  \0 377 376 377  \b
0003360   060 000 060 000 060 000 060 000 062 000 106 000 065 000 117 000
           0  \0   0  \0   0  \0   0  \0   2  \0   F  \0   5  \0   O  \0
0003400   377 376 377 000 377 376 377 000 377 376 377 000 001 000 000 000
         377 376 377  \0 377 376 377  \0 377 376 377  \0 001  \0  \0  \0
0003420   377 376 377 010 060 000 060 000 060 000 060 000 062 000 106 000
         377 376 377  \b   0  \0   0  \0   0  \0   0  \0   2  \0   F  \0
0003440   065 000 124 000 377 376 377 000 377 376 377 000 377 376 377 000
           5  \0   T  \0 377 376 377  \0 377 376 377  \0 377 376 377  \0
0003460   001 000 000 000 377 376 377 010 060 000 060 000 060 000 060 000
         001  \0  \0  \0 377 376 377  \b   0  \0   0  \0   0  \0   0  \0
0003500   062 000 106 000 066 000 111 000 377 376 377 000 377 376 377 000
           2  \0   F  \0   6  \0   I  \0 377 376 377  \0 377 376 377  \0
0003520   377 376 377 000 001 000 000 000 377 376 377 005 102 000 122 000
         377 376 377  \0 001  \0  \0  \0 377 376 377 005   B  \0   R  \0
0003540   105 000 101 000 113 000 377 376 377 000 377 376 377 000 377 376
           E  \0   A  \0   K  \0 377 376 377  \0 377 376 377  \0 377 376
0003560   377 000 000 000 000 000                                        
         377  \0  \0  \0  \0  \0                                        
0003566

# 2  
Old 01-19-2015
What do you mean by "parse"? And, could you attach a (small) sample?
# 3  
Old 01-19-2015
I mean, i want fetch the ascii content of the binary file

i try this:

Code:
od -An -t x1 /Users/ericgouezec/Desktop/20150118_1920.txt | while read line;do for char in $line;do [ $char != '00' ] && [ $char != 'ff' ] &&  echo 0x$char | xxd -r -p;done ;done

But if i redirect the result in a file, i can't open it (problem utf-8)

How attach a file ?

Thx.
# 4  
Old 01-19-2015
Click "Go Advanced"; there you can manage attachments.
# 5  
Old 01-19-2015
Here my binary file
# 6  
Old 01-19-2015
Strange. Never seen before. Where does that file come from?
# 7  
Old 01-19-2015
it's a playlist of file which play by a server of grass valley (aurora)
The extension is pls
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

Problem in printing binary tree using php and mysql

Database Structure Root Table ID Root_ Node Level 1 A 0 2 B 1 3 C 1 Child Table ID Left_Node Right_Node Root_Node Root_ID 1 B C A 1 ... (1 Reply)
Discussion started by: Deepak Tiwari
1 Replies

2. Shell Programming and Scripting

Problem with binary file

I have a binary file with all content is text, i want convert this binary to a regular file because i want to parse it. Thx. ---------- Post updated at 05:01 AM ---------- Previous update was at 04:34 AM ---------- I have found the solution cat file | tr -d '\0' (8 Replies)
Discussion started by: protocomm
8 Replies

3. Shell Programming and Scripting

Convert binary file to csv and then back to the binary format

Hello *nix specialists, Im working for a non profit organisation in Germany to transport DSL over WLAN to people in areas without no DSL. We are using Linksys WRT 54 router with DD-WRT firmware There are at the moment over 180 router running but we have to change some settings next time. So my... (7 Replies)
Discussion started by: digidax
7 Replies

4. UNIX for Dummies Questions & Answers

[AIX] Binary file warning for text file.

Hello guys, We had to move from a DC to another, and we are now facing an "issue" with some text files. Looks like that some of our log files are set as binary: file TuxConnectorURA.20121012 TuxConnectorURA.20121012: data or International Language text less TuxConnectorURA.20121012... (2 Replies)
Discussion started by: EnioMarques
2 Replies

5. Shell Programming and Scripting

Output redirection of c binary file to a file in shell script is failing

I am struck up with a problem and that is with output redirection. I used all the ways for the redirection of the output of c binary to a file, still it is failing. Here are the different ways which I have used: ./a.out | tee -a /root/tmp.txt 2>&1 ./a.out | tee -a /root/tmp.txt 1>&1 ./a.out |... (2 Replies)
Discussion started by: Maya29988
2 Replies

6. UNIX for Dummies Questions & Answers

Pipe binary file matches grep results to file

I am using grep to match a pattern, but the output is strange. $ grep -r -o "pattern" * Gives me: Binary file foo1 matches Binary file foo2 matches Binary file foo3 matches To find the lines before/after, I then have to use the following on each file: $ strings foo1 | grep -A1 -B1... (0 Replies)
Discussion started by: chipperuga
0 Replies

7. SCO

SCO unix binary compatibility problem

Hi I am looking for sco xenix binary compatibility utility "cvtomf",(convert omf object to COFF object) Would you please help me ? tnx (3 Replies)
Discussion started by: javad1_maroofi
3 Replies

8. Solaris

problem when decoding a binary file

I tried to decode a binary script using the command 'uudecode'. but it is giving error as 'No begining line'. 'uudecode -o <outfile name> <binary file>' Please help me in resolving this. (4 Replies)
Discussion started by: vamshikrishnab
4 Replies

9. Filesystems, Disks and Memory

UNIX problem concerning Microsoft Office Binary

I just started using Terminal on my Mac this summer, and right now I am having problems making a shell script. This shell should run the "Microsoft Setup Assistant" once I run the Automator Script. Alas, I still have problems. Here is the offending scriptlet: Sudo Tcsh root# cd... (2 Replies)
Discussion started by: chrisfrap
2 Replies

10. Solaris

compiled binary file gives "cannot execute binary file"

Hi, I have two Solaris machines. 1. SunOS X 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-1500 2. SunOS Y 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-60 I am trying to buiild a project on both these machines. The Binary output file compiled on machine 2 runs on both the machines. Where... (0 Replies)
Discussion started by: scgupta
0 Replies
Login or Register to Ask a Question