[PC-BSD Testing] 9.2 beta images, disk vendor names are cut off..

Sam Fourman Jr. sfourman at gmail.com
Mon Aug 12 06:30:29 PDT 2013


>
> Yeah, third and last try. :-))
>
> echo da15 ad30 ad1 ad0 ada0 ada1 da0 da1 da10 da11 da12 da13 da14 da15
>   da16 da17 da18 da19 da2 da20 da21 da3 da4 da5 da6 da7 da8 da9 |
>   tr ' ' '\n' | sed 's/\([^0-9]*\)/\1 /' | sort +0 -1 +1n | tr -d ' '
>
> Ugly, but functional.



This does work Thank you!

sysctl -n kern.disks |tr ' ' '\n' | sed 's/\([^0-9]*\)/\1 /' | sort +0
-1 +1n | tr -d ' '
ada0
ada1
da0
da1
da2
da3
da4
da5
da6
da7
da8
da9
da10
da11
da12
da13
da14
da15
da16
da17
da18
da19
da20
da21


-- 

Sam Fourman Jr.


More information about the Testing mailing list