[gull] Truc et astuces: la commande column
Félix Hauri
felix at f-hauri.ch
Wed Apr 2 23:03:20 CEST 2025
Intéressant: Je ne connaissais pas cet usage de la commande: ``column''
$ s2p='s/[[:space:]]\+/|/;';printf -v fields '%*s' 7; /bin/ls -g |
sed "1d;${fields// /$s2p}" |
column --table --separator '|' --table-noheadings \
--table-columns perm,b,grup,siz,day,mnt,yot,name --table-wrap name
ou
$ s2p='s/[[:space:]]\+/|/;';printf -v fields '%*s' 5;LANG=C df -k |
sed "${fields// /$s2p}" |
column --table --separator '|' --table-noheadings \
--table-columns fs,tot,use,ava,pct,mpnt --table-wrap fs
--
Félix Hauri - <felix at f-hauri.ch> - http://www.f-hauri.ch
More information about the gull
mailing list