
shell
文章平均质量分 67
zhangbin-eos
这个作者很懒,什么都没留下…
展开
-
终端秒表工具:一个linux stopwatch 脚本
#! /bin/sh print_help(){cat<<EOFUsage: stopwatch 'R/r': start Time'S/s': stop Time'C/c': clear '*': others character print timeEOF}IS_start(){ while true;do ...原创 2020-04-23 16:16:39 · 587 阅读 · 0 评论 -
使用Python转换文件编码
使用Python转换文件编码代码下载git@github.com:zhangbin-eos/ChangeFileEncoding.gitChangeFileEncoding配合脚本进行文件编码的批量修改for f in $( find -name *.[ch] ) ;do ChangeFileEncoding.exe $f utf-8 ; done;即可替换所有的.c和.h文件的编码为u...原创 2019-12-12 15:21:22 · 2747 阅读 · 0 评论 -
替换 rm 为 mv
#history -cexport LANGUAGE=&quot;en_US.UTF-8&quot;#export LC_ALL=&quot;C&quot;#Aliases#auther zb#To make work easy#1------------------------alias vi='vim'alias cp='cp -v'alias cpr='cp -vr'alias mv='mv -v'ali...原创 2019-03-12 16:13:49 · 257 阅读 · 0 评论 -
curl调试web/cgi
#! /bin/bash#URL='http://192.168.20.127/cgi-bin/lig_switch.cgi'cat &amp;lt;&amp;lt;EOF | while read linequery={&quot;name&quot;:&quot;switch&quot;,&quot;data&quot;:{&quot;at原创 2019-03-12 16:26:36 · 705 阅读 · 0 评论 -
echo显示带颜色
echo显示带颜色echo显示带颜色,需要使用参数-e格式如下:echo -e “\033[字背景颜色;文字颜色m字符串\033[0m”例如:echo -e “\033[41;37m TonyZhang \033[0m”其中41的位置代表底色, 37的位置是代表字的颜色注:1、字背景颜色和文字颜色之间是英文的“&quot;&quot;”2、文字颜色后面有个m3、字符串前后可以没有空格,如果有的话,...转载 2019-03-12 16:27:03 · 4543 阅读 · 0 评论