Updating value from new last line of tempfile


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Updating value from new last line of tempfile
# 8  
Old 05-31-2015
Code:
0 ~/.cache $ ls -l vhs.tmp.playstatus
-rw-rw-r--. 1 sea sea 5.0K  1. Jun 01:43 vhs.tmp.playstatus

0 ~/.cache $ wc vhs.tmp.playstatus
   8  855 5025 vhs.tmp.playstatus

0 ~/.cache $ od -bc vhs.tmp.playstatus
0000000 040 040 040 040 156 141 156 040 040 040 040 072 040 040 060 056
                          n   a   n                   :           0   .
0000020 060 060 060 040 146 144 075 040 040 040 060 040 141 161 075 040
          0   0   0       f   d   =               0       a   q   =    
0000040 040 040 040 060 113 102 040 166 161 075 040 040 040 040 060 113
                      0   K   B       v   q   =                   0   K
0000060 102 040 163 161 075 040 040 040 040 060 102 040 146 075 060 057
          B       s   q   =                   0   B       f   =   0   /
0000100 060 040 040 040 015 111 156 160 165 164 040 043 060 054 040 155
          0              \r   I   n   p   u   t       #   0   ,       m
0000120 160 063 054 040 146 162 157 155 040 047 152 157 151 156 145 144
          p   3   ,       f   r   o   m       '   j   o   i   n   e   d
0000140 137 146 151 154 145 163 056 155 160 063 047 072 012 040 040 115
          _   f   i   l   e   s   .   m   p   3   '   :  \n           M
0000160 145 164 141 144 141 164 141 072 012 040 040 040 040 145 156 143
          e   t   a   d   a   t   a   :  \n                   e   n   c
0000200 157 144 145 144 137 142 171 040 040 040 040 040 040 072 040 126
          o   d   e   d   _   b   y                           :       V
0000220 110 123 040 050 126 151 144 145 157 040 110 141 156 144 154 145
          H   S       (   V   i   d   e   o       H   a   n   d   l   e
0000240 162 040 123 143 162 151 160 164 040 062 056 061 056 066 040 055
          r       S   c   r   i   p   t       2   .   1   .   6       -
0000260 040 050 143 051 040 062 060 061 064 055 062 060 061 065 040 142
              (   c   )       2   0   1   4   -   2   0   1   5       b
0000300 171 040 163 145 141 051 054 040 165 163 151 156 147 040 146 146
          y       s   e   a   )   ,       u   s   i   n   g       f   f
0000320 155 160 145 147 040 062 056 066 056 062 040 103 157 160 171 162
          m   p   e   g       2   .   6   .   2       C   o   p   y   r
0000340 151 147 150 164 040 050 143 051 040 062 060 060 060 055 062 060
          i   g   h   t       (   c   )       2   0   0   0   -   2   0
0000360 061 065 040 164 150 145 040 106 106 155 160 145 147 040 144 145
          1   5       t   h   e       F   F   m   p   e   g       d   e
0000400 166 145 154 157 160 145 162 163 012 040 040 040 040 145 156 143
          v   e   l   o   p   e   r   s  \n                   e   n   c
0000420 157 144 145 162 040 040 040 040 040 040 040 040 040 072 040 114
          o   d   e   r                                       :       L
0000440 141 166 146 065 066 056 062 065 056 061 060 061 012 040 040 104
          a   v   f   5   6   .   2   5   .   1   0   1  \n           D
0000460 165 162 141 164 151 157 156 072 040 060 060 072 065 070 072 064
          u   r   a   t   i   o   n   :       0   0   :   5   8   :   4
0000500 066 056 060 063 054 040 163 164 141 162 164 072 040 060 056 060
          6   .   0   3   ,       s   t   a   r   t   :       0   .   0
0000520 062 065 060 065 067 054 040 142 151 164 162 141 164 145 072 040
          2   5   0   5   7   ,       b   i   t   r   a   t   e   :    
0000540 061 071 062 040 153 142 057 163 012 040 040 040 040 123 164 162
          1   9   2       k   b   /   s  \n                   S   t   r
0000560 145 141 155 040 043 060 072 060 072 040 101 165 144 151 157 072
          e   a   m       #   0   :   0   :       A   u   d   i   o   :
0000600 040 155 160 063 054 040 064 064 061 060 060 040 110 172 054 040
              m   p   3   ,       4   4   1   0   0       H   z   ,    
0000620 163 164 145 162 145 157 054 040 163 061 066 160 054 040 061 071
          s   t   e   r   e   o   ,       s   1   6   p   ,       1   9
0000640 062 040 153 142 057 163 012 040 040 040 040 115 145 164 141 144
          2       k   b   /   s  \n                   M   e   t   a   d
0000660 141 164 141 072 012 040 040 040 040 040 040 145 156 143 157 144
          a   t   a   :  \n                           e   n   c   o   d
0000700 145 162 040 040 040 040 040 040 040 040 040 072 040 114 141 166
          e   r                                       :       L   a   v
0000720 143 065 066 056 062 066 012 040 040 040 060 056 060 064 040 115
          c   5   6   .   2   6  \n               0   .   0   4       M
0000740 055 101 072 040 040 060 056 060 060 060 040 146 144 075 040 040
          -   A   :           0   .   0   0   0       f   d   =        
0000760 040 060 040 141 161 075 040 040 040 040 064 113 102 040 166 161
              0       a   q   =                   4   K   B       v   q
0001000 075 040 040 040 040 060 113 102 040 163 161 075 040 040 040 040
          =                   0   K   B       s   q   =                
0001020 060 102 040 146 075 060 057 060 040 040 040 015 040 040 040 060
          0   B       f   =   0   /   0              \r               0
0001040 056 060 066 040 115 055 101 072 040 040 060 056 060 060 060 040
          .   0   6       M   -   A   :           0   .   0   0   0    
0001060 146 144 075 040 040 040 060 040 141 161 075 040 040 040 040 064
          f   d   =               0       a   q   =                   4
0001100 113 102 040 166 161 075 040 040 040 040 060 113 102 040 163 161
          K   B       v   q   =                   0   K   B       s   q
0001120 075 040 040 040 040 060 102 040 146 075 060 057 060 040 040 040
          =                   0   B       f   =   0   /   0            
0001140 015 040 040 040 060 056 060 071 040 115 055 101 072 040 040 060
         \r               0   .   0   9       M   -   A   :           0
0001160 056 060 060 060 040 146 144 075 040 040 040 060 040 141 161 075
          .   0   0   0       f   d   =               0       a   q   =
0001200 040 040 040 040 064 113 102 040 166 161 075 040 040 040 040 060
                          4   K   B       v   q   =                   0
0001220 113 102 040 163 161 075 040 040 040 040 060 102 040 146 075 060
          K   B       s   q   =                   0   B       f   =   0
0001240 057 060 040 040 040 015 040 040 040 060 056 061 063 040 115 055
          /   0              \r               0   .   1   3       M   -
0001260 101 072 040 040 060 056 060 060 060 040 146 144 075 040 040 040
          A   :           0   .   0   0   0       f   d   =            
0001300 060 040 141 161 075 040 040 040 040 064 113 102 040 166 161 075
          0       a   q   =                   4   K   B       v   q   =
0001320 040 040 040 040 060 113 102 040 163 161 075 040 040 040 040 060
                          0   K   B       s   q   =                   0
0001340 102 040 146 075 060 057 060 040 040 040 015 040 040 040 060 056
          B       f   =   0   /   0              \r               0   .
0001360 061 066 040 115 055 101 072 040 040 060 056 060 060 060 040 146
          1   6       M   -   A   :           0   .   0   0   0       f
0001400 144 075 040 040 040 060 040 141 161 075 040 040 040 040 064 113
          d   =               0       a   q   =                   4   K
0001420 102 040 166 161 075 040 040 040 040 060 113 102 040 163 161 075
          B       v   q   =                   0   K   B       s   q   =
0001440 040 040 040 040 060 102 040 146 075 060 057 060 040 040 040 015
                          0   B       f   =   0   /   0              \r
0001460 040 040 040 060 056 061 070 040 115 055 101 072 040 040 060 056
                      0   .   1   8       M   -   A   :           0   .
0001500 060 060 060 040 146 144 075 040 040 040 060 040 141 161 075 040
          0   0   0       f   d   =               0       a   q   =    
0001520 040 040 040 064 113 102 040 166 161 075 040 040 040 040 060 113
                      4   K   B       v   q   =                   0   K
0001540 102 040 163 161 075 040 040 040 040 060 102 040 146 075 060 057
          B       s   q   =                   0   B       f   =   0   /
0001560 060 040 040 040 015 040 040 040 060 056 062 061 040 115 055 101
          0              \r               0   .   2   1       M   -   A
0001600 072 040 055 060 056 060 060 060 040 146 144 075 040 040 040 060
          :       -   0   .   0   0   0       f   d   =               0
0001620 040 141 161 075 040 040 040 040 064 113 102 040 166 161 075 040
              a   q   =                   4   K   B       v   q   =    
0001640 040 040 040 060 113 102 040 163 161 075 040 040 040 040 060 102
                      0   K   B       s   q   =                   0   B
0001660 040 146 075 060 057 060 040 040 040 015 040 040 040 060 056 062
              f   =   0   /   0              \r               0   .   2
0001700 066 040 115 055 101 072 040 040 060 056 060 060 060 040 146 144
          6       M   -   A   :           0   .   0   0   0       f   d
0001720 075 040 040 040 060 040 141 161 075 040 040 040 040 064 113 102
          =               0       a   q   =                   4   K   B
0001740 040 166 161 075 040 040 040 040 060 113 102 040 163 161 075 040
              v   q   =                   0   K   B       s   q   =    
0001760 040 040 040 060 102 040 146 075 060 057 060 040 040 040 015 040
                      0   B       f   =   0   /   0              \r    
0002000 040 040 060 056 062 070 040 115 055 101 072 040 040 060 056 060
                  0   .   2   8       M   -   A   :           0   .   0
0002020 060 060 040 146 144 075 040 040 040 060 040 141 161 075 040 040
          0   0       f   d   =               0       a   q   =        
0002040 040 040 064 113 102 040 166 161 075 040 040 040 040 060 113 102
                  4   K   B       v   q   =                   0   K   B
0002060 040 163 161 075 040 040 040 040 060 102 040 146 075 060 057 060
              s   q   =                   0   B       f   =   0   /   0
0002100 040 040 040 015 040 040 040 060 056 063 061 040 115 055 101 072
                     \r               0   .   3   1       M   -   A   :
0002120 040 040 060 056 060 060 060 040 146 144 075 040 040 040 060 040
                  0   .   0   0   0       f   d   =               0    
0002140 141 161 075 040 040 040 040 064 113 102 040 166 161 075 040 040
          a   q   =                   4   K   B       v   q   =        
0002160 040 040 060 113 102 040 163 161 075 040 040 040 040 060 102 040
                  0   K   B       s   q   =                   0   B    
0002200 146 075 060 057 060 040 040 040 015 040 040 040 060 056 063 063
          f   =   0   /   0              \r               0   .   3   3
0002220 040 115 055 101 072 040 055 060 056 060 060 060 040 146 144 075
              M   -   A   :       -   0   .   0   0   0       f   d   =
0002240 040 040 040 060 040 141 161 075 040 040 040 040 064 113 102 040
                      0       a   q   =                   4   K   B    
0002260 166 161 075 040 040 040 040 060 113 102 040 163 161 075 040 040
          v   q   =                   0   K   B       s   q   =        
0002300 040 040 060 102 040 146 075 060 057 060 040 040 040 015 040 040
                  0   B       f   =   0   /   0              \r        
0002320 040 060 056 063 070 040 115 055 101 072 040 040 060 056 060 060
              0   .   3   8       M   -   A   :           0   .   0   0
0002340 060 040 146 144 075 040 040 040 060 040 141 161 075 040 040 040
          0       f   d   =               0       a   q   =            
0002360 040 064 113 102 040 166 161 075 040 040 040 040 060 113 102 040
              4   K   B       v   q   =                   0   K   B    
0002400 163 161 075 040 040 040 040 060 102 040 146 075 060 057 060 040
          s   q   =                   0   B       f   =   0   /   0    
0002420 040 040 015 040 040 040 060 056 064 060 040 115 055 101 072 040
                 \r               0   .   4   0       M   -   A   :    
0002440 040 060 056 060 060 060 040 146 144 075 040 040 040 060 040 141
              0   .   0   0   0       f   d   =               0       a
0002460 161 075 040 040 040 040 064 113 102 040 166 161 075 040 040 040
          q   =                   4   K   B       v   q   =            
0002500 040 060 113 102 040 163 161 075 040 040 040 040 060 102 040 146
              0   K   B       s   q   =                   0   B       f
0002520 075 060 057 060 040 040 040 015 040 040 040 060 056 064 062 040
          =   0   /   0              \r               0   .   4   2    
0002540 115 055 101 072 040 040 060 056 060 060 060 040 146 144 075 040
          M   -   A   :           0   .   0   0   0       f   d   =    
0002560 040 040 060 040 141 161 075 040 040 040 040 063 113 102 040 166
                  0       a   q   =                   3   K   B       v
0002600 161 075 040 040 040 040 060 113 102 040 163 161 075 040 040 040
          q   =                   0   K   B       s   q   =            
0002620 040 060 102 040 146 075 060 057 060 040 040 040 015 040 040 040
              0   B       f   =   0   /   0              \r            
0002640 060 056 064 067 040 115 055 101 072 040 040 060 056 060 060 060
          0   .   4   7       M   -   A   :           0   .   0   0   0
0002660 040 146 144 075 040 040 040 060 040 141 161 075 040 040 040 040
              f   d   =               0       a   q   =                
0002700 062 113 102 040 166 161 075 040 040 040 040 060 113 102 040 163
          2   K   B       v   q   =                   0   K   B       s
0002720 161 075 040 040 040 040 060 102 040 146 075 060 057 060 040 040
          q   =                   0   B       f   =   0   /   0        
0002740 040 015 040 040 040 060 056 064 071 040 115 055 101 072 040 040
             \r               0   .   4   9       M   -   A   :        
0002760 060 056 060 060 060 040 146 144 075 040 040 040 060 040 141 161
          0   .   0   0   0       f   d   =               0       a   q
0003000 075 040 040 040 040 063 113 102 040 166 161 075 040 040 040 040
          =                   3   K   B       v   q   =                
0003020 060 113 102 040 163 161 075 040 040 040 040 060 102 040 146 075
          0   K   B       s   q   =                   0   B       f   =
0003040 060 057 060 040 040 040 015 040 040 040 060 056 065 062 040 115
          0   /   0              \r               0   .   5   2       M
0003060 055 101 072 040 040 060 056 060 060 060 040 146 144 075 040 040
          -   A   :           0   .   0   0   0       f   d   =        
0003100 040 060 040 141 161 075 040 040 040 040 064 113 102 040 166 161
              0       a   q   =                   4   K   B       v   q
0003120 075 040 040 040 040 060 113 102 040 163 161 075 040 040 040 040
          =                   0   K   B       s   q   =                
0003140 060 102 040 146 075 060 057 060 040 040 040 015 040 040 040 060
          0   B       f   =   0   /   0              \r               0
0003160 056 065 064 040 115 055 101 072 040 040 060 056 060 060 060 040
          .   5   4       M   -   A   :           0   .   0   0   0    
0003200 146 144 075 040 040 040 060 040 141 161 075 040 040 040 040 064
          f   d   =               0       a   q   =                   4
0003220 113 102 040 166 161 075 040 040 040 040 060 113 102 040 163 161
          K   B       v   q   =                   0   K   B       s   q
0003240 075 040 040 040 040 060 102 040 146 075 060 057 060 040 040 040
          =                   0   B       f   =   0   /   0            
0003260 015 040 040 040 060 056 065 071 040 115 055 101 072 040 040 060
         \r               0   .   5   9       M   -   A   :           0
0003300 056 060 060 060 040 146 144 075 040 040 040 060 040 141 161 075
          .   0   0   0       f   d   =               0       a   q   =
0003320 040 040 040 040 064 113 102 040 166 161 075 040 040 040 040 060
                          4   K   B       v   q   =                   0
0003340 113 102 040 163 161 075 040 040 040 040 060 102 040 146 075 060
          K   B       s   q   =                   0   B       f   =   0
0003360 057 060 040 040 040 015 040 040 040 060 056 066 061 040 115 055
          /   0              \r               0   .   6   1       M   -
0003400 101 072 040 040 060 056 060 060 060 040 146 144 075 040 040 040
          A   :           0   .   0   0   0       f   d   =            
0003420 060 040 141 161 075 040 040 040 040 064 113 102 040 166 161 075
          0       a   q   =                   4   K   B       v   q   =
0003440 040 040 040 040 060 113 102 040 163 161 075 040 040 040 040 060
                          0   K   B       s   q   =                   0
0003460 102 040 146 075 060 057 060 040 040 040 015 040 040 040 060 056
          B       f   =   0   /   0              \r               0   .
0003500 066 064 040 115 055 101 072 040 040 060 056 060 060 060 040 146
          6   4       M   -   A   :           0   .   0   0   0       f
0003520 144 075 040 040 040 060 040 141 161 075 040 040 040 040 064 113
          d   =               0       a   q   =                   4   K
0003540 102 040 166 161 075 040 040 040 040 060 113 102 040 163 161 075
          B       v   q   =                   0   K   B       s   q   =
0003560 040 040 040 040 060 102 040 146 075 060 057 060 040 040 040 015
                          0   B       f   =   0   /   0              \r
0003600 040 040 040 060 056 066 066 040 115 055 101 072 040 040 060 056
                      0   .   6   6       M   -   A   :           0   .
0003620 060 060 060 040 146 144 075 040 040 040 060 040 141 161 075 040
          0   0   0       f   d   =               0       a   q   =    
0003640 040 040 040 064 113 102 040 166 161 075 040 040 040 040 060 113
                      4   K   B       v   q   =                   0   K
0003660 102 040 163 161 075 040 040 040 040 060 102 040 146 075 060 057
          B       s   q   =                   0   B       f   =   0   /
0003700 060 040 040 040 015 040 040 040 060 056 067 061 040 115 055 101
          0              \r               0   .   7   1       M   -   A
0003720 072 040 040 060 056 060 060 060 040 146 144 075 040 040 040 060
          :           0   .   0   0   0       f   d   =               0
0003740 040 141 161 075 040 040 040 040 064 113 102 040 166 161 075 040
              a   q   =                   4   K   B       v   q   =    
0003760 040 040 040 060 113 102 040 163 161 075 040 040 040 040 060 102
                      0   K   B       s   q   =                   0   B
0004000 040 146 075 060 057 060 040 040 040 015 040 040 040 060 056 067
              f   =   0   /   0              \r               0   .   7
0004020 063 040 115 055 101 072 040 040 060 056 060 060 060 040 146 144
          3       M   -   A   :           0   .   0   0   0       f   d
0004040 075 040 040 040 060 040 141 161 075 040 040 040 040 064 113 102
          =               0       a   q   =                   4   K   B
0004060 040 166 161 075 040 040 040 040 060 113 102 040 163 161 075 040
              v   q   =                   0   K   B       s   q   =    
0004100 040 040 040 060 102 040 146 075 060 057 060 040 040 040 015 040
                      0   B       f   =   0   /   0              \r    
0004120 040 040 060 056 067 066 040 115 055 101 072 040 040 060 056 060
                  0   .   7   6       M   -   A   :           0   .   0
0004140 060 060 040 146 144 075 040 040 040 060 040 141 161 075 040 040
          0   0       f   d   =               0       a   q   =        
0004160 040 040 064 113 102 040 166 161 075 040 040 040 040 060 113 102
                  4   K   B       v   q   =                   0   K   B
0004200 040 163 161 075 040 040 040 040 060 102 040 146 075 060 057 060
              s   q   =                   0   B       f   =   0   /   0
0004220 040 040 040 015 040 040 040 060 056 067 070 040 115 055 101 072
                     \r               0   .   7   8       M   -   A   :
0004240 040 040 060 056 060 060 060 040 146 144 075 040 040 040 060 040
                  0   .   0   0   0       f   d   =               0    
0004260 141 161 075 040 040 040 040 064 113 102 040 166 161 075 040 040
          a   q   =                   4   K   B       v   q   =        
0004300 040 040 060 113 102 040 163 161 075 040 040 040 040 060 102 040
                  0   K   B       s   q   =                   0   B    
0004320 146 075 060 057 060 040 040 040 015 040 040 040 060 056 070 063
          f   =   0   /   0              \r               0   .   8   3
0004340 040 115 055 101 072 040 040 060 056 060 060 060 040 146 144 075
              M   -   A   :           0   .   0   0   0       f   d   =
0004360 040 040 040 060 040 141 161 075 040 040 040 040 064 113 102 040
                      0       a   q   =                   4   K   B    
0004400 166 161 075 040 040 040 040 060 113 102 040 163 161 075 040 040
          v   q   =                   0   K   B       s   q   =        
0004420 040 040 060 102 040 146 075 060 057 060 040 040 040 015 040 040
                  0   B       f   =   0   /   0              \r        
0004440 040 060 056 070 066 040 115 055 101 072 040 040 060 056 060 060
              0   .   8   6       M   -   A   :           0   .   0   0
0004460 060 040 146 144 075 040 040 040 060 040 141 161 075 040 040 040
          0       f   d   =               0       a   q   =            
0004500 040 064 113 102 040 166 161 075 040 040 040 040 060 113 102 040
              4   K   B       v   q   =                   0   K   B    
0004520 163 161 075 040 040 040 040 060 102 040 146 075 060 057 060 040
          s   q   =                   0   B       f   =   0   /   0    
0004540 040 040 015 040 040 040 060 056 070 070 040 115 055 101 072 040
                 \r               0   .   8   8       M   -   A   :    
0004560 040 060 056 060 060 060 040 146 144 075 040 040 040 060 040 141
              0   .   0   0   0       f   d   =               0       a
0004600 161 075 040 040 040 040 064 113 102 040 166 161 075 040 040 040
          q   =                   4   K   B       v   q   =            
0004620 040 060 113 102 040 163 161 075 040 040 040 040 060 102 040 146
              0   K   B       s   q   =                   0   B       f
0004640 075 060 057 060 040 040 040 015 040 040 040 060 056 071 061 040
          =   0   /   0              \r               0   .   9   1    
0004660 115 055 101 072 040 040 060 056 060 060 060 040 146 144 075 040
          M   -   A   :           0   .   0   0   0       f   d   =    
0004700 040 040 060 040 141 161 075 040 040 040 040 064 113 102 040 166
                  0       a   q   =                   4   K   B       v
0004720 161 075 040 040 040 040 060 113 102 040 163 161 075 040 040 040
          q   =                   0   K   B       s   q   =            
0004740 040 060 102 040 146 075 060 057 060 040 040 040 015 040 040 040
              0   B       f   =   0   /   0              \r            
0004760 060 056 071 065 040 115 055 101 072 040 040 060 056 060 060 060
          0   .   9   5       M   -   A   :           0   .   0   0   0
0005000 040 146 144 075 040 040 040 060 040 141 161 075 040 040 040 040
              f   d   =               0       a   q   =                
0005020 064 113 102 040 166 161 075 040 040 040 040 060 113 102 040 163
          4   K   B       v   q   =                   0   K   B       s
0005040 161 075 040 040 040 040 060 102 040 146 075 060 057 060 040 040
          q   =                   0   B       f   =   0   /   0        
0005060 040 015 040 040 040 060 056 071 070 040 115 055 101 072 040 040
             \r               0   .   9   8       M   -   A   :        
0005100 060 056 060 060 060 040 146 144 075 040 040 040 060 040 141 161
          0   .   0   0   0       f   d   =               0       a   q
0005120 075 040 040 040 040 064 113 102 040 166 161 075 040 040 040 040
          =                   4   K   B       v   q   =                
0005140 060 113 102 040 163 161 075 040 040 040 040 060 102 040 146 075
          0   K   B       s   q   =                   0   B       f   =
0005160 060 057 060 040 040 040 015 040 040 040 061 056 060 060 040 115
          0   /   0              \r               1   .   0   0       M
0005200 055 101 072 040 040 060 056 060 060 060 040 146 144 075 040 040
          -   A   :           0   .   0   0   0       f   d   =        
0005220 040 060 040 141 161 075 040 040 040 040 064 113 102 040 166 161
              0       a   q   =                   4   K   B       v   q
0005240 075 040 040 040 040 060 113 102 040 163 161 075 040 040 040 040
          =                   0   K   B       s   q   =                
0005260 060 102 040 146 075 060 057 060 040 040 040 015 040 040 040 061
          0   B       f   =   0   /   0              \r               1
0005300 056 060 063 040 115 055 101 072 040 040 060 056 060 060 060 040
          .   0   3       M   -   A   :           0   .   0   0   0    
0005320 146 144 075 040 040 040 060 040 141 161 075 040 040 040 040 064
          f   d   =               0       a   q   =                   4
0005340 113 102 040 166 161 075 040 040 040 040 060 113 102 040 163 161
          K   B       v   q   =                   0   K   B       s   q
0005360 075 040 040 040 040 060 102 040 146 075 060 057 060 040 040 040
          =                   0   B       f   =   0   /   0            
0005400 015 040 040 040 061 056 060 067 040 115 055 101 072 040 040 060
         \r               1   .   0   7       M   -   A   :           0
0005420 056 060 060 060 040 146 144 075 040 040 040 060 040 141 161 075
          .   0   0   0       f   d   =               0       a   q   =
0005440 040 040 040 040 064 113 102 040 166 161 075 040 040 040 040 060
                          4   K   B       v   q   =                   0
0005460 113 102 040 163 161 075 040 040 040 040 060 102 040 146 075 060
          K   B       s   q   =                   0   B       f   =   0
0005500 057 060 040 040 040 015 040 040 040 061 056 061 060 040 115 055
          /   0              \r               1   .   1   0       M   -
0005520 101 072 040 040 060 056 060 060 060 040 146 144 075 040 040 040
          A   :           0   .   0   0   0       f   d   =            
0005540 060 040 141 161 075 040 040 040 040 064 113 102 040 166 161 075
          0       a   q   =                   4   K   B       v   q   =
0005560 040 040 040 040 060 113 102 040 163 161 075 040 040 040 040 060
                          0   K   B       s   q   =                   0
0005600 102 040 146 075 060 057 060 040 040 040 015 040 040 040 061 056
          B       f   =   0   /   0              \r               1   .
0005620 061 062 040 115 055 101 072 040 040 060 056 060 060 060 040 146
          1   2       M   -   A   :           0   .   0   0   0       f
0005640 144 075 040 040 040 060 040 141 161 075 040 040 040 040 064 113
          d   =               0       a   q   =                   4   K
0005660 102 040 166 161 075 040 040 040 040 060 113 102 040 163 161 075
          B       v   q   =                   0   K   B       s   q   =
0005700 040 040 040 040 060 102 040 146 075 060 057 060 040 040 040 015
                          0   B       f   =   0   /   0              \r
0005720 040 040 040 061 056 061 066 040 115 055 101 072 040 040 060 056
                      1   .   1   6       M   -   A   :           0   .
0005740 060 060 060 040 146 144 075 040 040 040 060 040 141 161 075 040
          0   0   0       f   d   =               0       a   q   =    
0005760 040 040 040 063 113 102 040 166 161 075 040 040 040 040 060 113
                      3   K   B       v   q   =                   0   K
0006000 102 040 163 161 075 040 040 040 040 060 102 040 146 075 060 057
          B       s   q   =                   0   B       f   =   0   /
0006020 060 040 040 040 015 040 040 040 061 056 061 071 040 115 055 101
          0              \r               1   .   1   9       M   -   A
0006040 072 040 040 060 056 060 060 060 040 146 144 075 040 040 040 060
          :           0   .   0   0   0       f   d   =               0
0006060 040 141 161 075 040 040 040 040 063 113 102 040 166 161 075 040
              a   q   =                   3   K   B       v   q   =    
0006100 040 040 040 060 113 102 040 163 161 075 040 040 040 040 060 102
                      0   K   B       s   q   =                   0   B
0006120 040 146 075 060 057 060 040 040 040 015 040 040 040 061 056 062
              f   =   0   /   0              \r               1   .   2
0006140 061 040 115 055 101 072 040 040 060 056 060 060 060 040 146 144
          1       M   -   A   :           0   .   0   0   0       f   d
0006160 075 040 040 040 060 040 141 161 075 040 040 040 040 063 113 102
          =               0       a   q   =                   3   K   B
0006200 040 166 161 075 040 040 040 040 060 113 102 040 163 161 075 040
              v   q   =                   0   K   B       s   q   =    
0006220 040 040 040 060 102 040 146 075 060 057 060 040 040 040 015 040
                      0   B       f   =   0   /   0              \r    
0006240 040 040 061 056 062 066 040 115 055 101 072 040 040 060 056 060
                  1   .   2   6       M   -   A   :           0   .   0
0006260 060 060 040 146 144 075 040 040 040 060 040 141 161 075 040 040
          0   0       f   d   =               0       a   q   =        
0006300 040 040 064 113 102 040 166 161 075 040 040 040 040 060 113 102
                  4   K   B       v   q   =                   0   K   B
0006320 040 163 161 075 040 040 040 040 060 102 040 146 075 060 057 060
              s   q   =                   0   B       f   =   0   /   0
0006340 040 040 040 015 040 040 040 061 056 062 071 040 115 055 101 072
                     \r               1   .   2   9       M   -   A   :
0006360 040 040 060 056 060 060 060 040 146 144 075 040 040 040 060 040
                  0   .   0   0   0       f   d   =               0    
0006400 141 161 075 040 040 040 040 064 113 102 040 166 161 075 040 040
          a   q   =                   4   K   B       v   q   =        
0006420 040 040 060 113 102 040 163 161 075 040 040 040 040 060 102 040
                  0   K   B       s   q   =                   0   B    
0006440 146 075 060 057 060 040 040 040 015 040 040 040 061 056 063 061
          f   =   0   /   0              \r               1   .   3   1
0006460 040 115 055 101 072 040 040 060 056 060 060 060 040 146 144 075
              M   -   A   :           0   .   0   0   0       f   d   =
0006500 040 040 040 060 040 141 161 075 040 040 040 040 064 113 102 040
                      0       a   q   =                   4   K   B    
0006520 166 161 075 040 040 040 040 060 113 102 040 163 161 075 040 040
          v   q   =                   0   K   B       s   q   =        
0006540 040 040 060 102 040 146 075 060 057 060 040 040 040 015 040 040
                  0   B       f   =   0   /   0              \r        
0006560 040 061 056 063 063 040 115 055 101 072 040 040 060 056 060 060
              1   .   3   3       M   -   A   :           0   .   0   0
0006600 060 040 146 144 075 040 040 040 060 040 141 161 075 040 040 040
          0       f   d   =               0       a   q   =            
0006620 040 064 113 102 040 166 161 075 040 040 040 040 060 113 102 040
              4   K   B       v   q   =                   0   K   B    
0006640 163 161 075 040 040 040 040 060 102 040 146 075 060 057 060 040
          s   q   =                   0   B       f   =   0   /   0    
0006660 040 040 015 040 040 040 061 056 063 066 040 115 055 101 072 040
                 \r               1   .   3   6       M   -   A   :    
0006700 040 060 056 060 060 060 040 146 144 075 040 040 040 060 040 141
              0   .   0   0   0       f   d   =               0       a
0006720 161 075 040 040 040 040 064 113 102 040 166 161 075 040 040 040
          q   =                   4   K   B       v   q   =            
0006740 040 060 113 102 040 163 161 075 040 040 040 040 060 102 040 146
              0   K   B       s   q   =                   0   B       f
0006760 075 060 057 060 040 040 040 015 040 040 040 061 056 064 061 040
          =   0   /   0              \r               1   .   4   1    
0007000 115 055 101 072 040 040 060 056 060 060 060 040 146 144 075 040
          M   -   A   :           0   .   0   0   0       f   d   =    
0007020 040 040 060 040 141 161 075 040 040 040 040 064 113 102 040 166
                  0       a   q   =                   4   K   B       v
0007040 161 075 040 040 040 040 060 113 102 040 163 161 075 040 040 040
          q   =                   0   K   B       s   q   =            
0007060 040 060 102 040 146 075 060 057 060 040 040 040 015 040 040 040
              0   B       f   =   0   /   0              \r            
0007100 061 056 064 063 040 115 055 101 072 040 040 060 056 060 060 060
          1   .   4   3       M   -   A   :           0   .   0   0   0
0007120 040 146 144 075 040 040 040 060 040 141 161 075 040 040 040 040
              f   d   =               0       a   q   =                
0007140 064 113 102 040 166 161 075 040 040 040 040 060 113 102 040 163
          4   K   B       v   q   =                   0   K   B       s
0007160 161 075 040 040 040 040 060 102 040 146 075 060 057 060 040 040
          q   =                   0   B       f   =   0   /   0        
0007200 040 015 040 040 040 061 056 064 066 040 115 055 101 072 040 040
             \r               1   .   4   6       M   -   A   :        
0007220 060 056 060 060 060 040 146 144 075 040 040 040 060 040 141 161
          0   .   0   0   0       f   d   =               0       a   q
0007240 075 040 040 040 040 064 113 102 040 166 161 075 040 040 040 040
          =                   4   K   B       v   q   =                
0007260 060 113 102 040 163 161 075 040 040 040 040 060 102 040 146 075
          0   K   B       s   q   =                   0   B       f   =
0007300 060 057 060 040 040 040 015 040 040 040 061 056 065 060 040 115
          0   /   0              \r               1   .   5   0       M
0007320 055 101 072 040 040 060 056 060 060 060 040 146 144 075 040 040
          -   A   :           0   .   0   0   0       f   d   =        
0007340 040 060 040 141 161 075 040 040 040 040 064 113 102 040 166 161
              0       a   q   =                   4   K   B       v   q
0007360 075 040 040 040 040 060 113 102 040 163 161 075 040 040 040 040
          =                   0   K   B       s   q   =                
0007400 060 102 040 146 075 060 057 060 040 040 040 015 040 040 040 061
          0   B       f   =   0   /   0              \r               1
0007420 056 065 063 040 115 055 101 072 040 040 060 056 060 060 060 040
          .   5   3       M   -   A   :           0   .   0   0   0    
0007440 146 144 075 040 040 040 060 040 141 161 075 040 040 040 040 064
          f   d   =               0       a   q   =                   4
0007460 113 102 040 166 161 075 040 040 040 040 060 113 102 040 163 161
          K   B       v   q   =                   0   K   B       s   q
0007500 075 040 040 040 040 060 102 040 146 075 060 057 060 040 040 040
          =                   0   B       f   =   0   /   0            
0007520 015 040 040 040 061 056 065 065 040 115 055 101 072 040 040 060
         \r               1   .   5   5       M   -   A   :           0
0007540 056 060 060 060 040 146 144 075 040 040 040 060 040 141 161 075
          .   0   0   0       f   d   =               0       a   q   =
0007560 040 040 040 040 064 113 102 040 166 161 075 040 040 040 040 060
                          4   K   B       v   q   =                   0
0007600 113 102 040 163 161 075 040 040 040 040 060 102 040 146 075 060
          K   B       s   q   =                   0   B       f   =   0
0007620 057 060 040 040 040 015 040 040 040 061 056 065 067 040 115 055
          /   0              \r               1   .   5   7       M   -
0007640 101 072 040 040 060 056 060 060 060 040 146 144 075 040 040 040
          A   :           0   .   0   0   0       f   d   =            
0007660 060 040 141 161 075 040 040 040 040 064 113 102 040 166 161 075
          0       a   q   =                   4   K   B       v   q   =
0007700 040 040 040 040 060 113 102 040 163 161 075 040 040 040 040 060
                          0   K   B       s   q   =                   0
0007720 102 040 146 075 060 057 060 040 040 040 015 040 040 040 061 056
          B       f   =   0   /   0              \r               1   .
0007740 066 062 040 115 055 101 072 040 040 060 056 060 060 060 040 146
          6   2       M   -   A   :           0   .   0   0   0       f
0007760 144 075 040 040 040 060 040 141 161 075 040 040 040 040 064 113
          d   =               0       a   q   =                   4   K
0010000 102 040 166 161 075 040 040 040 040 060 113 102 040 163 161 075
          B       v   q   =                   0   K   B       s   q   =
0010020 040 040 040 040 060 102 040 146 075 060 057 060 040 040 040 015
                          0   B       f   =   0   /   0              \r
0010040 040 040 040 061 056 066 065 040 115 055 101 072 040 040 060 056
                      1   .   6   5       M   -   A   :           0   .
0010060 060 060 060 040 146 144 075 040 040 040 060 040 141 161 075 040
          0   0   0       f   d   =               0       a   q   =    
0010100 040 040 040 064 113 102 040 166 161 075 040 040 040 040 060 113
                      4   K   B       v   q   =                   0   K
0010120 102 040 163 161 075 040 040 040 040 060 102 040 146 075 060 057
          B       s   q   =                   0   B       f   =   0   /
0010140 060 040 040 040 015 040 040 040 061 056 066 067 040 115 055 101
          0              \r               1   .   6   7       M   -   A
0010160 072 040 040 060 056 060 060 060 040 146 144 075 040 040 040 060
          :           0   .   0   0   0       f   d   =               0
0010200 040 141 161 075 040 040 040 040 064 113 102 040 166 161 075 040
              a   q   =                   4   K   B       v   q   =    
0010220 040 040 040 060 113 102 040 163 161 075 040 040 040 040 060 102
                      0   K   B       s   q   =                   0   B
0010240 040 146 075 060 057 060 040 040 040 015 040 040 040 061 056 067
              f   =   0   /   0              \r               1   .   7
0010260 060 040 115 055 101 072 040 040 060 056 060 060 060 040 146 144
          0       M   -   A   :           0   .   0   0   0       f   d
0010300 075 040 040 040 060 040 141 161 075 040 040 040 040 064 113 102
          =               0       a   q   =                   4   K   B
0010320 040 166 161 075 040 040 040 040 060 113 102 040 163 161 075 040
              v   q   =                   0   K   B       s   q   =    
0010340 040 040 040 060 102 040 146 075 060 057 060 040 040 040 015 040
                      0   B       f   =   0   /   0              \r    
0010360 040 040 061 056 067 064 040 115 055 101 072 040 040 060 056 060
                  1   .   7   4       M   -   A   :           0   .   0
0010400 060 060 040 146 144 075 040 040 040 060 040 141 161 075 040 040
          0   0       f   d   =               0       a   q   =        
0010420 040 040 064 113 102 040 166 161 075 040 040 040 040 060 113 102
                  4   K   B       v   q   =                   0   K   B
0010440 040 163 161 075 040 040 040 040 060 102 040 146 075 060 057 060
              s   q   =                   0   B       f   =   0   /   0
0010460 040 040 040 015 040 040 040 061 056 067 067 040 115 055 101 072
                     \r               1   .   7   7       M   -   A   :
0010500 040 040 060 056 060 060 060 040 146 144 075 040 040 040 060 040
                  0   .   0   0   0       f   d   =               0    
0010520 141 161 075 040 040 040 040 064 113 102 040 166 161 075 040 040
          a   q   =                   4   K   B       v   q   =        
0010540 040 040 060 113 102 040 163 161 075 040 040 040 040 060 102 040
                  0   K   B       s   q   =                   0   B    
0010560 146 075 060 057 060 040 040 040 015 040 040 040 061 056 067 071
          f   =   0   /   0              \r               1   .   7   9
0010600 040 115 055 101 072 040 040 060 056 060 060 060 040 146 144 075
              M   -   A   :           0   .   0   0   0       f   d   =
0010620 040 040 040 060 040 141 161 075 040 040 040 040 064 113 102 040
                      0       a   q   =                   4   K   B    
0010640 166 161 075 040 040 040 040 060 113 102 040 163 161 075 040 040
          v   q   =                   0   K   B       s   q   =        
0010660 040 040 060 102 040 146 075 060 057 060 040 040 040 015 040 040
                  0   B       f   =   0   /   0              \r        
0010700 040 061 056 070 062 040 115 055 101 072 040 040 060 056 060 060
              1   .   8   2       M   -   A   :           0   .   0   0
0010720 060 040 146 144 075 040 040 040 060 040 141 161 075 040 040 040
          0       f   d   =               0       a   q   =            
0010740 040 064 113 102 040 166 161 075 040 040 040 040 060 113 102 040
              4   K   B       v   q   =                   0   K   B    
0010760 163 161 075 040 040 040 040 060 102 040 146 075 060 057 060 040
          s   q   =                   0   B       f   =   0   /   0    
0011000 040 040 015 040 040 040 061 056 070 066 040 115 055 101 072 040
                 \r               1   .   8   6       M   -   A   :    
0011020 040 060 056 060 060 060 040 146 144 075 040 040 040 060 040 141
              0   .   0   0   0       f   d   =               0       a
0011040 161 075 040 040 040 040 064 113 102 040 166 161 075 040 040 040
          q   =                   4   K   B       v   q   =            
0011060 040 060 113 102 040 163 161 075 040 040 040 040 060 102 040 146
              0   K   B       s   q   =                   0   B       f
0011100 075 060 057 060 040 040 040 015 040 040 040 061 056 070 071 040
          =   0   /   0              \r               1   .   8   9    
0011120 115 055 101 072 040 040 060 056 060 060 060 040 146 144 075 040
          M   -   A   :           0   .   0   0   0       f   d   =    
0011140 040 040 060 040 141 161 075 040 040 040 040 064 113 102 040 166
                  0       a   q   =                   4   K   B       v
0011160 161 075 040 040 040 040 060 113 102 040 163 161 075 040 040 040
          q   =                   0   K   B       s   q   =            
0011200 040 060 102 040 146 075 060 057 060 040 040 040 015 040 040 040
              0   B       f   =   0   /   0              \r            
0011220 061 056 071 061 040 115 055 101 072 040 040 060 056 060 060 060
          1   .   9   1       M   -   A   :           0   .   0   0   0
0011240 040 146 144 075 040 040 040 060 040 141 161 075 040 040 040 040
              f   d   =               0       a   q   =                
0011260 063 113 102 040 166 161 075 040 040 040 040 060 113 102 040 163
          3   K   B       v   q   =                   0   K   B       s
0011300 161 075 040 040 040 040 060 102 040 146 075 060 057 060 040 040
          q   =                   0   B       f   =   0   /   0        
0011320 040 015 040 040 040 061 056 071 065 040 115 055 101 072 040 040
             \r               1   .   9   5       M   -   A   :        
0011340 060 056 060 060 060 040 146 144 075 040 040 040 060 040 141 161
          0   .   0   0   0       f   d   =               0       a   q
0011360 075 040 040 040 040 062 113 102 040 166 161 075 040 040 040 040
          =                   2   K   B       v   q   =                
0011400 060 113 102 040 163 161 075 040 040 040 040 060 102 040 146 075
          0   K   B       s   q   =                   0   B       f   =
0011420 060 057 060 040 040 040 015 040 040 040 061 056 071 070 040 115
          0   /   0              \r               1   .   9   8       M
0011440 055 101 072 040 040 060 056 060 060 060 040 146 144 075 040 040
          -   A   :           0   .   0   0   0       f   d   =        
0011460 040 060 040 141 161 075 040 040 040 040 064 113 102 040 166 161
              0       a   q   =                   4   K   B       v   q
0011500 075 040 040 040 040 060 113 102 040 163 161 075 040 040 040 040
          =                   0   K   B       s   q   =                
0011520 060 102 040 146 075 060 057 060 040 040 040 015 040 040 040 062
          0   B       f   =   0   /   0              \r               2
0011540 056 060 061 040 115 055 101 072 040 040 060 056 060 060 060 040
          .   0   1       M   -   A   :           0   .   0   0   0    
0011560 146 144 075 040 040 040 060 040 141 161 075 040 040 040 040 064
          f   d   =               0       a   q   =                   4
0011600 113 102 040 166 161 075 040 040 040 040 060 113 102 040 163 161
          K   B       v   q   =                   0   K   B       s   q
0011620 075 040 040 040 040 060 102 040 146 075 060 057 060 040 040 040
          =                   0   B       f   =   0   /   0            
0011640 015
         \r
0011641

0 ~/.cache $

# 9  
Old 05-31-2015
The grep utility processes lines. Lines end with a <newline> character. Your file has 8 lines in the 1st 470 bytes of your 5,025 byte file and one long and, presumably, growing incomplete line with a bunch of <carriage-return>s, but no <newline>s.

To get the last status update, maybe you want something more like:
Code:
tr '\r' '\n' vhs.tmp.playstatus | tail -n 1 | ...

or:
Code:
awk -v RS='\r' 'script' vhs.tmp.playstatus


Last edited by Don Cragun; 05-31-2015 at 09:09 PM.. Reason: Add awk RS alternative.
This User Gave Thanks to Don Cragun For This Post:
# 10  
Old 05-31-2015
I think the issue somehow is based upon the fact that ffmpeg (ffplay here) prints some basic info of the file, and then prints an updated status line, of where it currently is, the current bitrate, etc, and lcoses the line with a \r.

Though the tempfile ($TMP.playstatus) gets prints a new line.
I tried sed s,\r,,g with no change Smilie

However, Just played a 2:28 file and a 1:30 minute file, and at the end it looked:
Code:
tui-progress -bm 148 -c -0.01 -0.01/02:28
tui-progress -bm 148 -c -0.01 -0.01/02:28
tui-progress -bm 148 -c 93.21 93.21/02:28
tui-progress -bm 148 -c 93.21 93.21/02:28

However, this did NOT apply to the file playing 1:30....
Another weird thing of the above example, max is 148 secs = 2:28, but the cur only reach 93.21 secs when it was done playing Smilie

---------- Post updated at 02:12 ---------- Previous update was at 02:08 ----------

Code:
+++ tr '\r' '\n' /home/sea/.cache//vhs.tmp.playstatus
+++ tail -n 1
tr: extra operand '/home/sea/.cache//vhs.tmp.playstatus'
Try 'tr --help' for more information.

Code:
$ tr '\r' '\n' vhs.tmp.playstatus 
tr: extra operand 'vhs.tmp.playstatus'
Try 'tr --help' for more information.

Smilie

---------- Post updated at 02:16 ---------- Previous update was at 02:12 ----------

Nevermind, i prefix tr with cat, and its now working.
Though not what i wanted, but it works.

Thank you alot!

EDIT:
This is what works:
Code:
output=$(cat "$STATUS"|tr '\r' '\n'  | tail -n 1  | awk '{print $1}')

# 11  
Old 05-31-2015
Sorry. I intended to say:
Code:
tr '\r' '\n' < file

instead of:
Code:
tr '\r' '\n' file

This User Gave Thanks to Don Cragun For This Post:
# 12  
Old 05-31-2015
Just wanted to share how it looks like now.
The progressbar beeing on multiple lines was by will to show its progress/display.
Updating value from new last line of tempfile-vhs-preview-playstatusjpg
Updating value from new last line of tempfile-vhs-preview-playstatus-videojpg

Last edited by sea; 05-31-2015 at 10:42 PM..
# 13  
Old 06-01-2015
Given your status file's structure is fixed, i.e. line length is constant, as is field length, this
Code:
CUR=$(dd if=status bs=1 skip=$(($(stat -c"%s-69" status))) count=7 2>/dev/null)

would yield the first field of the last line, eliminating tr and awk. Although there's a small chance that another line is written between stat's byte count read and dd's copy action. Worth a shot?
# 14  
Old 06-01-2015
Quote:
Originally Posted by RudiC
Given your status file's structure is fixed, i.e. line length is constant, as is field length, this
Code:
CUR=$(dd if=status bs=1 skip=$(($(stat -c"%s-69" status))) count=7 2>/dev/null)

would yield the first field of the last line, eliminating tr and awk. Although there's a small chance that another line is written between stat's byte count read and dd's copy action. Worth a shot?
Structure is fixed, so the given 7 first bytes per line would match.
Wouldnt that apply to the current (or just any filebased) method either?
I'm not quite sure if the replacing of 3 string/stream modifiers/tools by 2 file modifiers would improve anything (speed, hw i/o rate, cpu/hdd temp) or the contrairy...

Sure thing is an interesting new approach, i would not have thought of dd to read and print a file its content.

Thank you.

BTW, if anyone would like to give VHS (Video Handler Script, using ffmpeg) a shot: https://github.com/sri-arjuna/vhs

IMHO, without having one, i'd say its best use (to stream a directories content of audiofiles to your network) on a Raspery PI or something alike.
If you should have it already installed, be sure to update TUI too.

---------- Post updated at 13:18 ---------- Previous update was at 12:46 ----------

I'll stay with the current method.
It tends to be 0.01 s faster than the dd method on the average.
Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Get an output of lines in pattern 1st line then 10th line then 11th line then 20th line and so on.

Input file: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 (6 Replies)
Discussion started by: Sagar Singh
6 Replies

2. Ubuntu

16.04 not updating

Just installed the latest version on my hp stream, was tired of windows. Of the few times I've used Linux, this is the first time it won't update. Im connected to the net the updater recognizes that the OS needs 21 updates. But it won't download/install the updates. It also won't load the... (1 Reply)
Discussion started by: DabblingMadman
1 Replies

3. SCO

FoxPro 2.6 and updating UW

I have an app in FP26 with 400 prgs currently en UW7.1.1 thats work perfectly. I have a new server and install UW7.1.4 and FP26. Then I had copy my App to new server. But the next command doesn't work: use database @10,10 get name read I can't write in the get. ... (5 Replies)
Discussion started by: AralVorkosigan
5 Replies

4. Shell Programming and Scripting

Need help for updating the folder

Hello Expert, is there any command through which i can update/replace the folder after every two months. lets say i have folder /usr/local/x_folder created on 01/01/2011 I need to update it on 31/03/2011 Please help me to get the logic :confused: Thanks (3 Replies)
Discussion started by: aks_1902
3 Replies

5. AIX

Updating AIX OS

Hello I have a server whose os level reads 5300-01-00-0000. It has to be upgraded to the latest level which is 5300-12-04-1119. What would I need to do go get the server to this point? Would I need to go through each patch level until I get it to current? If so, would anyone happen to know... (1 Reply)
Discussion started by: stayfuzzy
1 Replies

6. Shell Programming and Scripting

updating a single line by script

hi, I'm trying to add a # to the beginning of the line where the a word is included. and the i want to run the whole original script. and if possible I would prefer that line would stay in the same order in the text file, the line which includes the word. Thanks, (10 Replies)
Discussion started by: ozum
10 Replies

7. Shell Programming and Scripting

Updating a line in a large csv file, with sed/awk?

I have an extremely large csv file that I need to search the second field, and upon matches update the last field... I can pull the line with awk.. but apparently you cant use awk to directly update the file? So im curious if I can use sed to do this... The good news is the field I want to... (5 Replies)
Discussion started by: trey85stang
5 Replies

8. Shell Programming and Scripting

awk updating one file with another, comparing, updating

Hello, I read and search through this wonderful forum and tried different approaches but it seems I lack some knowledge and neurones ^^ Here is what I'm trying to achieve : file1: test filea 3495; test fileb 4578; test filec 7689; test filey 9978; test filez 12300; file2: test filea... (11 Replies)
Discussion started by: mecano
11 Replies
Login or Register to Ask a Question