• Finden ...
    • Start
    • Neueste Beiträge
    • Technik

      Programmieren, Basteln u.a.

    • Musik

      Elektronische Musikproduktion.

    • Sonstiges

      Alles, was nicht in die anderen Kategorien passt.

  • Andere Seiten
    • Musik-Archiv
    • GIT Repository

      Quellcode-Archiv.

  • Kontakt
  • Sprache
    • English
← Using VIm's "Negative Lookahead" to Delete All L…
Using VIm's ":v" to Delete All Lines NOT Contain… →
Kategorie GNU/Linux
← Using VIm’s „Negative Lookahead“ to Delete All Lines NOT Containing a Pattern
→ Using VIm’s „:v“ to Delete All Lines NOT Containing a Pattern

Text-Console Barchart of Storage Utilization

7. Januar 2015 in Administration, GNU/Linux.

Written as a Bourne Shell-Script that invokes a Perl one-liner:

LC_ALL=C df -kPT | perl -ane '!/(^Filesystem|tmpfs)/ && do {
   printf("%-33s: %s\n", $F[0], "*" x int((`tput cols`-35) * $F[3] / $F[2]))
}'

 

← Using VIm's "Negative Lookahead" to Delete All L…
Using VIm's ":v" to Delete All Lines NOT Contain… →