Linux 解压来自 Windows 的 zip 包,文件名乱码 解决方案: sudo apt install unar unar your-zip 这个命令行工具可以自动识别编码。 官网:https://theunarchiver.com/command-line 未分类 桩白墨 2021-04-17 2 热度 0评论
bash 对数字排序 假如有这么一列数字(或数字开头的字符串),想要排序后输出。 # nums.txt: 1 2 3 55 23 5 7 90 25 18 44 121 309 88 直接使用 sort 并不能满足需求: # cat nums.txt|sort 1 121 18 2 23 25 3 309 44 5 55 7 88 90 应该使用 sort -n。 # cat nums.txt|sort -n 1 2 未分类 桩白墨 2021-04-17 4 热度 0评论
k8s 关闭所有被驱逐(Evicted)的 pod 命令如下: kubectl get po -A | grep Evicted | awk '{print $1, $2}' | while read -r ns pod; do kubectl delete po $pod -n $ns; done 未分类 桩白墨 2021-04-17 1 热度 0评论