Lost in the matrix

C/C++/C#/Java, Multithreading

#
# Usage : simple_cut <chaine> <separateur> <colonne>
#

simple_cut()
{
sep=`echo -e "\006"`
echo -n `echo -n $1 | tr "\n" $sep | tr $2 "\n" | head -n $3 | tail -n 1 | tr $sep "\n"`
}

0 commentaires:

Enregistrer un commentaire