scripts:shell脚本集合

时间:2021-06-01 16:49:30
【文件属性】:
文件名称:scripts:shell脚本集合
文件大小:389KB
文件格式:ZIP
更新时间:2021-06-01 16:49:30
HTML ##我的shell脚本 ###bash 技能 1.显示行号 export PS4='+${BASH_SOURCE}:${LINENO}:${FUNCNAME[0]}: ' 2.调试除代码 set -x THE CODE BE DEBUGED set +x 3.添加调试标志 像这样的代码: DEBUG=0 _ERR_HDR_FMT="%.23s %s[%s]: " _ERR_MSG_FMT="${_ERR_HDR_FMT}%s\n" _log() { if test $DEBUG -eq 1 ; then printf "$_ERR_MSG_FMT" $(date +%F.%T.%N) ${BASH_SOURCE[1]##*/} ${BASH_LINENO[0]} "${@}" fi } 并按如下方式运行: DEBUG=1 ./test.sh 添加文本到文件的头部,使用c
【文件预览】:
scripts-master
----other()
--------git_pull.sh(371B)
--------iet_download.sh(810B)
--------git_clone.sh(622B)
----netspeed()
--------netspeed.sh(935B)
--------get-nic-speed.sh(944B)
----genmk()
--------sample()
--------README.md(733B)
--------genmk.sh(5KB)
----sysmon()
--------iscsi.sh(5KB)
--------dmon.sh(5KB)
--------mon-eth-speed.sh(511B)
--------dmonpro.sh(2KB)
----wifi()
--------wifi.sh(2KB)
----pdf()
--------download.sh(668B)
--------pdfdecrypt.sh(2KB)
----iscsi()
--------iscsi-tool.sh(2KB)
--------iscsi-discovery.sh(873B)
----pmt()
--------example.conf(139B)
--------pmt.bat(3KB)
--------pmt.sh(2KB)
--------pmt.conf(146B)
----cp()
--------mycp.sh(3KB)
----xml()
--------xml.sh(2KB)
--------tmp.xml(201B)
----README.md(7KB)
----html2md()
--------html2md.sh(215B)
--------bookmarks.html(801KB)
----common()
--------test.sh(308B)
--------common.sh(7KB)
----git()
--------git_pull.sh(429B)
--------git_clone.sh(551B)
----ds2img()
--------rmcomment.sh(741B)
--------iscsi_hdr.h(10KB)
--------ietadm.h(2KB)
--------iscsi_dbg.h(3KB)
--------isns_proto.h(7KB)
--------iet_u.h(3KB)
--------iscsid.h(7KB)
--------iotype.h(1KB)
--------t.dot(10KB)
--------README.md(2KB)
--------t.h(14KB)
--------digest.h(594B)
--------ds2img.py(8KB)
--------param.h(1KB)
--------rm_special.sh(436B)
--------iscsi.h(14KB)

网友评论