IO: number = update interval, string = substring grep.

This commit is contained in:
Ole Tange 2024-05-19 19:50:58 +02:00
parent ce818baf58
commit a10b619fc7
2 changed files with 9 additions and 2 deletions

BIN
DroidSansMonoWide.ttf Normal file

Binary file not shown.

View file

@ -139,7 +139,6 @@ bind 'set convert-meta off'
PERL_MB_OPT="--install_base \"/home/tange/perl5\""; export PERL_MB_OPT; PERL_MB_OPT="--install_base \"/home/tange/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/home/tange/perl5"; export PERL_MM_OPT; PERL_MM_OPT="INSTALL_BASE=/home/tange/perl5"; export PERL_MM_OPT;
sh -c '(killall ibus-x11 2>/dev/null &)'
tallia() { tallia() {
echo "select '2016-06-21'::timestamp - now();" |sql pg:/// echo "select '2016-06-21'::timestamp - now();" |sql pg:///
@ -172,6 +171,7 @@ alias y='idok -port $((RANDOM+2000))'
#export QT_SCALE_FACTOR=2 #export QT_SCALE_FACTOR=2
MANPATH=$MANPATH:$HOME/share/man MANPATH=$MANPATH:$HOME/share/man
if [ -f ~/.passwords ]; then if [ -f ~/.passwords ]; then
# Any passwords set as env variables
. ~/.passwords . ~/.passwords
fi fi
@ -231,7 +231,14 @@ IO() {
# Minimize output from iostat -dkx 1 # Minimize output from iostat -dkx 1
# Usage: # Usage:
# IO [substring] # IO [substring]
iostat -dkx 1 | time=1
# This tests if $1 is a number
if [ "$1" -eq "$1" ] 2>/dev/null; then
time=$1
shift
fi
iostat -dkx $time |
perl -e '$| = 1; perl -e '$| = 1;
@ARGV = @ARGV ? @ARGV : "sd"; @ARGV = @ARGV ? @ARGV : "sd";
while(<STDIN>) { while(<STDIN>) {