Ver Mensaje Individual
  #1
Antiguo 11 de enero de 2017, 14:32
Kuk
Administrador
Última Actividad 21.09.2026 18:24
Posts Posts: 2.500
Likes enviados Enviados: 1037
Likes recibidos Recibidos: 1207
Versiones Ejemplo MFSort en Linux
0 Inactivo Inactivo

Código Bash:
  1. #!/bin/bash
  2. FIC_SORTIN=/ruta_fichero_entrada
  3. FIC_SORTOUT=/ruta_fichero_salida
  4.  
  5. # USE - fichero de entrada
  6. # RECORD - tipo de registro
  7. # F - fijo / V - variable
  8. # ,100 - longitud del fichero fijo / ,20,100 - longitudes mínima y máxima fichero variable
  9. # ORG - organización
  10. # LS - organización Line-Sequential / RS Record-Sequential
  11. # GIVE - fichero de salida
  12.  
  13. mfsort sort fields "(1,7,CH,A)" use $FIC_SORTIN record f,100 org ls give $FIC_SORTOUT



NORMAS DEL FORO - para garantizar el buen funcionamiento del Foro.
¿Te han ayudado? NO TE OLVIDES de darle a
¿Quieres dirigirte a alguien en tu post? Notifícale haciendo clic en su Nick
Kuk is offline   Responder Con Cita