• Find ...
    • Start
    • Latest Entries
    • Technik

      Programming, tinkering et al.

    • Music

      Music experiments, production and presentation.

    • Other

      All that does not fit the other categories.

  • Other Sites
    • Music Archive
    • GIT Repository

      Sourcecode Archive.

  • Contact Me
  • Language
    • Deutsch
← Using VIm's "Negative Lookahead" to Delete All L…
Using VIm's ":v" to Delete All Lines NOT Contain… →
Category 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… →
Imprint RSS