Archives pour: Janvier 2012

30.01.12

Permalien 16:17:00, par mazet Email , 45 mots   French (FR) latin1
Catégories: Systeme

MSYS

Sur www.mingw.org, il faut recuperer mingw-get-inst-lastest.exe pour install ''MinGW'' ET ''MSYS'' Apres avoir lancer le ''MinGW Shell'', il faut installer un meilleur terminal (par exemple rxvt). mingw-get install msys-rxvt Enfin, il ne reste… suite »

03.01.12

Permalink 03:59:00 pm, by mazet Email , 55 words   English (US) latin1
Categories: Programmation, Awk

Convertion from hexa to decinal

Simple function to convert hexadecimal figures to decimal. It need to define a constant table hex BEGIN { for (i=0; i<10; i++) hex[i] = i hex["a"] = hex["A"] = 10 hex["b"] = hex["B"] = 11 hex["c"] = hex["C"] = 12 hex["D"… more »
Permalink 03:51:00 pm, by mazet Email , 50 words   English (US) latin1
Categories: Programmation, Awk

Asort for Mawk

Mawk does not provide asort function to sort array. function alength(A, n, val) { n = 0 for (val in A) n++ return n } function asort(A, hold, i, j, n) { n = alength(A) for (i = 2; i <= n ; i++) { hold = A[… more »