摘要: GIT LEARN NOTE git初始设置 user name and email git config --global user.name "user_name" git config --global user.email "user_email" 可读性设置 git config --gl 阅读全文
posted @ 2021-05-11 21:55 MOVIT 阅读(69) 评论(0) 推荐(0)
摘要: The initial source comes from https://github.com/sdcuike/issueBlog/issues/4 http://greenteapress.com/wp/ https://papers.nips.cc https://github.com/Pac 阅读全文
posted @ 2021-05-09 09:48 MOVIT 阅读(300) 评论(0) 推荐(0)
摘要: date用法 date格式选项 格式 含义 %Y(y) 年 %B(b) 月 %D(d) 日 %A(a) 工作日 %H 时 %M 分 %S 秒 %N 纳秒 %s unix纪元时 格式化时间显示 date "+%H-%M-%S" date timestamp function timeconvert() 阅读全文
posted @ 2021-04-27 22:28 MOVIT 阅读(292) 评论(0) 推荐(0)
摘要: bash heredoc reference article 最后一行标识符不能有空格 heredoc multi line comment << tips hello world tips echo hello lina heredoc cat message cat << tips hello 阅读全文
posted @ 2021-04-18 22:45 MOVIT 阅读(43) 评论(0) 推荐(0)
摘要: bash特殊变量 变量 含义 $0 函数名 \(n | n>=1,表示第一个、第二个、第n个参数、\)(10) $@ 全部参数 $* 全部参数 $# 参数个数 $_ 上一个命令的最后一个参数 $$ 当前shell进程ID $? 上一个命令的返回值 function test() { for i in 阅读全文
posted @ 2021-04-18 11:08 MOVIT 阅读(38) 评论(0) 推荐(0)
摘要: CENTRAL STRING function central_line() { #输入字符串长度 str_length=${#1} #echo ${str_length} #中心线长度 line_length=$(( (120-${str_length}) / 2 )) #echo ${line_ 阅读全文
posted @ 2021-04-17 00:14 MOVIT 阅读(40) 评论(0) 推荐(0)
摘要: bash调用串行任务队列方法和干预 将任务填写在task_list以数组的形式组织 for循环一步步的执行串行任务 某个任务需要依靠外部条件触发执行,monitor监测需要的文件 task_list=(task1 task2 task3) function monitor() { until tes 阅读全文
posted @ 2021-04-16 07:30 MOVIT 阅读(69) 评论(0) 推荐(0)
摘要: BASH loewrcase and uppercase convert reference article tr echo "hello world" | tr 'a-z' 'A-Z' or echo "hello world" | tr '[:lower:]' '[:upper:]' # [:a 阅读全文
posted @ 2021-04-16 07:28 MOVIT 阅读(457) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2021-04-16 07:23 MOVIT 阅读(1) 评论(0) 推荐(0)
摘要: bash数组array[*]、array[@]、"array[*]"、"array[@]" matrix=("hi" "hello world" "1 2 3") for item in ${matrix[*]};do echo ${item} done echo " " for item in $ 阅读全文
posted @ 2021-04-14 23:01 MOVIT 阅读(262) 评论(0) 推荐(0)