摘要:
# awk -F : '{print $1}' /etc/passwd | sed ':1;N;s/\n/|/g;t1' ;打印第一列的数据并用|分割替代以前的\n分割 :1 代表打一个标记1 t1 跳转到标记1 N 将读取到的数据追加到模式空间(包含换行符) # sed 's#:x:[0-9]:* 阅读全文
posted @ 2022-04-05 22:51
狒狒桑
阅读(43)
评论(0)
推荐(0)
摘要:
脚本1: # vi test.sh # !/bin/bash echo $1,$2,$3 echo "文件名" $0 echo "参数变量 "$# echo "all "$* echo "return "$? # bash test.sh 1 2 3 阅读全文
posted @ 2022-04-05 19:01
狒狒桑
阅读(30)
评论(0)
推荐(0)
摘要:
数组: # a = (a b c d e) # echo ${a[0]} # echo ${a[*]} # echo ${a[@]} b[0] = 1 if 语句: a = 20 b =10 if [ $a -eq $b ]; then echo "=";fi for语句: for loop in 阅读全文
posted @ 2022-04-05 18:44
狒狒桑
阅读(31)
评论(0)
推荐(0)
摘要:
文件操作: r 4 w2 x1 # ls -l # chmod 777 test.txt # ls -ld test.txt 网络命令: # netstat # netstat -lnpt 性能: # top # ps -aux grep命令: # grep -nv word file.txt ; 阅读全文
posted @ 2022-04-05 17:59
狒狒桑
阅读(107)
评论(0)
推荐(0)
摘要:
配置文件: # 字典platformVersion : 7.1platformName : AndroiddeviceName : name : 11 sex : hehe age : 13demo: - hello - yaml - yeahtest : ttttt 文件获取: import ya 阅读全文
posted @ 2022-04-05 14:38
狒狒桑
阅读(45)
评论(0)
推荐(0)
摘要:
import timefrom appium import webdriverfrom appium.webdriver.common.mobileby import MobileByfrom appium.webdriver.common.touch_action import TouchActi 阅读全文
posted @ 2022-04-05 00:31
狒狒桑
阅读(178)
评论(0)
推荐(0)
摘要:
import timefrom appium import webdriverfrom appium.webdriver.common.mobileby import MobileByfrom appium.webdriver.common.touch_action import TouchActi 阅读全文
posted @ 2022-04-05 00:05
狒狒桑
阅读(51)
评论(0)
推荐(0)

浙公网安备 33010602011771号