shell自動処理ファイル内部操作
#!/bin/bash
# logs
# 2018/2/2 yeng
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
check_error(){
if [ $? -eq 1 ];then
echo "$1 error" >/root/t.log
return 1
fi
}
iotops(){
# :
iotop >1.txt <