var arreglo = [2,3,20,10,1,23];
arreglo.sort(function (a,b){
   return a-b
});

function ok() {
  console.log(arreglo);
}

Se ve genial, no?


Este es otro estilo
Y es mas compacto..

Y… este es el tercer estilo:

echo "usage: wherein <dir> <file-pattern> <string>"

for i in $(find $1 -name $2);
    do 
      if grep -i $3 "$i"; 
        then echo "$i"; 
      fi; 
done;

Sorry, the comment form is closed at this time.

© 2020 Goose Workshop Suffusion theme by Sayontan Sinha