Thursday, October 28, 2010

convertir posiciones

for i in `seq 562 1000`; do j=$((i-1)); tail -n $i $i.TXT > $i.tmp; echo "$i.tmp $j" |./convierte.x > $j.xyz; rm $i.tmp ; done


for i in 75 76 77 78; do for j in A B C; do if [ -f $i$j ]; then echo "$i$j $i" | ./convierte.x > $i$j.xyz; fi; done; done

Thursday, February 25, 2010

Limpiar el .bash_history a lo burro

history | sort +1 | uniq -f 1 | sort -n| cut -c 8- > .bash_history.nodups

echar un vistazo que todo esté bien y luego mover a .bash_history