Ever wondered how to sort /etc/group by gid
, popularité : 2%
Just a quick post about reordering /etc/group using sort. As time goes, /etc/group is often unsorted as some groups were added and some others removed. The sort command has the ability to use alternative separator and to sort using arbitrary field :
sort -t":" -nk 3 /etc/group
Cet article est repris du site http://blog.nordbeastie.org/?p=275