Helpme shell
I fix this?
I change the order of fields in the files that come before the SORT help example is the correct order 00012 | CHP | 2 but then passes the sort you change it to chp | 00,012 | 2 mv -f $nombre.s $nombre join -t\| -1 2 -2 1 $nombre $RUTA_SAC/$nombre_archivo.s>>$archivo46.s join -t\| -v1 -1 2 -2 1 $nombre $RUTA_SAC/$nombre_archivo.s|sort -T/tempo -t\| -k1,1>$RUTA_SAC/$nombre.s mv -f $archivo46.s $archivo46 sort -T/tempo -t\| -k1,1 $archivo46>$RUTA_SAC/$archivo46.s #rm -f $archivo46 #rm -f $nombre |
Ummm ... that's a VERY unclear example, and I don't understand what you're
doing. Can you please post sample data from all files involved? 'sort' as such doesn't manipulate the order of fields; your varied joins do. A bit more input would go a long way in helping you. Cheers, Tink |
All times are GMT -5. The time now is 10:48 PM. |