diff options
author | LAN-TW <lantw44@gmail.com> | 2012-02-15 23:49:16 +0800 |
---|---|---|
committer | LAN-TW <lantw44@gmail.com> | 2012-02-15 23:49:16 +0800 |
commit | 5832fe44203ccf0cc00134fa9c2e7834260d1861 (patch) | |
tree | bf33c65461c8f62b1302216281334c2cbc9abe1c | |
parent | 1e0f0f8921c43a081b0b063ee10f1e5159b50148 (diff) | |
download | configfile-5832fe44203ccf0cc00134fa9c2e7834260d1861.tar.gz configfile-5832fe44203ccf0cc00134fa9c2e7834260d1861.tar.zst configfile-5832fe44203ccf0cc00134fa9c2e7834260d1861.zip |
bash_include: 背景執行清單標題bash_include-20120215
-rw-r--r-- | bash_include | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bash_include b/bash_include index ebf0c15..45ea26b 100644 --- a/bash_include +++ b/bash_include @@ -174,12 +174,6 @@ function bglist () { local viewtime=0 [ "$1" = "--full" ] && viewtime=1 - if [ "$viewtime" = "1" ] - then - echo " INDEX TIME PID COMMAND" - else - echo " INDEX PID COMMAND" - fi { for i in `find "$bgrunfiledir" -maxdepth 1 -mindepth 1 | sort` do @@ -195,6 +189,7 @@ function bglist () } | { if [ "$viewtime" = "1" ] then + echo " INDEX TIME PID COMMAND" local readstat=0 local -i i=1 while true @@ -225,6 +220,7 @@ function bglist () i=$i+1 done else + echo " INDEX PID COMMAND" cat -n fi } | $PAGER |