Oliver Mahmoudi <[email protected]> wrote:
> you can try to delete the /dev/ad10 entry with sed and then just
> append it to the end manually using the printf(1) utility like so:
>
> # ls /dev/ad* | sed s/"\/dev\/ad10"// | grep "/dev/ad" && printf
> "/dev/ad10\n"
Or strip the non-numerics from the beginning of each line, and put
them back after sorting:
# pfx=/dev/ad ; ls -d1 ${pfx}* | sed "s;$pfx;;" | sort -n | sed "s;^;$pfx;"
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"