guitar-player

lee_tiempo.sh

Feb 1st, 2012
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3.   for (( i = 1; i <= 30; i++))  
  4.   do
  5.     for (( k = 1; k <= 30; k++))
  6.     do
  7.        j=`head -$i tiempo_$k.txt | tail -1 | cut -f1`
  8.        touch promedio_"$j".log
  9.        head -$i tiempo_$k.txt | tail -1 | grep $j | cut -f2 -d" " >> promedio_"$j".log
  10.     done
  11.   done
Advertisement
Add Comment
Please, Sign In to add comment