B
Bogdan
Hi there,
I need to sort elements of of list/array by character. For instance I
got "hdisk1 hdisk10 hdisk11 hdisk2 hdisk3 ... " and need to have
"hdisk1 hdisk2 hdisk3 ... hdisk10 hdisk11 ..."
I can do that using external programs like
$ cat file_with_hdisks | sort -n -k1.6
but I'd like to do it in perl. Does anyone have any piece of code or
at least idea how to achieve that in as easy way as passible?
Thanks,
Bogdan
I need to sort elements of of list/array by character. For instance I
got "hdisk1 hdisk10 hdisk11 hdisk2 hdisk3 ... " and need to have
"hdisk1 hdisk2 hdisk3 ... hdisk10 hdisk11 ..."
I can do that using external programs like
$ cat file_with_hdisks | sort -n -k1.6
but I'd like to do it in perl. Does anyone have any piece of code or
at least idea how to achieve that in as easy way as passible?
Thanks,
Bogdan