Advertisement
Guest User

asistencia

a guest
Aug 28th, 2014
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. if [ $x = -c ]; then
  2. echo Ingrese "1" si asistio y "0" en caso contrario.
  3. cat lista | sed "s/\ /_/g" >> lista5
  4.  
  5. alumnos=($(cat lista5))
  6. len=${#alumnos[@]}
  7.  
  8. for(( i=0; i<$len; i++ ))
  9. do
  10. echo 'Asistio '${alumnos[${i}]}'? :'
  11. read asistencia[$i]
  12.  
  13. done
  14.  
  15.  
  16. echo ${asistencia[@]} >> asistencia
  17.  
  18. cat asistencia
  19. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement