IO: number = update interval, string = substring grep.
This commit is contained in:
parent
ce818baf58
commit
a10b619fc7
BIN
DroidSansMonoWide.ttf
Normal file
BIN
DroidSansMonoWide.ttf
Normal file
Binary file not shown.
11
home/.bashrc
11
home/.bashrc
|
@ -139,7 +139,6 @@ bind 'set convert-meta off'
|
|||
|
||||
PERL_MB_OPT="--install_base \"/home/tange/perl5\""; export PERL_MB_OPT;
|
||||
PERL_MM_OPT="INSTALL_BASE=/home/tange/perl5"; export PERL_MM_OPT;
|
||||
sh -c '(killall ibus-x11 2>/dev/null &)'
|
||||
|
||||
tallia() {
|
||||
echo "select '2016-06-21'::timestamp - now();" |sql pg:///
|
||||
|
@ -172,6 +171,7 @@ alias y='idok -port $((RANDOM+2000))'
|
|||
#export QT_SCALE_FACTOR=2
|
||||
MANPATH=$MANPATH:$HOME/share/man
|
||||
if [ -f ~/.passwords ]; then
|
||||
# Any passwords set as env variables
|
||||
. ~/.passwords
|
||||
fi
|
||||
|
||||
|
@ -231,7 +231,14 @@ IO() {
|
|||
# Minimize output from iostat -dkx 1
|
||||
# Usage:
|
||||
# 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;
|
||||
@ARGV = @ARGV ? @ARGV : "sd";
|
||||
while(<STDIN>) {
|
||||
|
|
Loading…
Reference in a new issue