ls -l /usr | grep '^d'|sort -k2,2nr|head -1|tr -s ' '|cut -d' ' -f8
| 2 | No.2 Revision |
ls -l /usr | grep '^d'|sort -k2,2nr|head -1|tr -s ' '|cut -d' ' -f8
-f8 | 3 | No.3 Revision |
ls -l /usr | grep '^d'|sort -k2,2nr|head -1|tr -s ' '|cut -d' ' -f8-f8 -
| 4 | No.4 Revision |
ls -l /usr | grep '^d'|sort -k2,2nr|head -1|tr -s ' '|cut -d' ' -f8 --f8-
| 5 | No.5 Revision |
Jak bylo zjištěno v komentářích, tak záleží, jak ls vypisuje. U mě na Archu je to ls -l /usr | grep '^d'|sort -k2,2nr|head -1|tr -s ' '|cut -d' ' -f8-, zatímco na Solarisu je to ls -l /usr | grep '^d'|sort -k2,2nr|head -1|tr -s ' '|cut -d' ' -f9-.
Copyright students of FIT CTU and others, 2014. Content on this site is licensed under a Creative Commons Attribution-ShareAlike 4.0 International license.