当前位置:网站首页>[Daily office][shell] Common code snippets
[Daily office][shell] Common code snippets
2022-08-04 06:31:00 【xcy6666】
Article table of contents
array, string match
arr=("1995" "1995x" "1995ee" "1995ss" "199")for i in ${arr[*]}; doif [[ "${i}" =~ "1995".* ]]; thenecho "matched $i"if [[ $i = "1995ee" ]]; thenecho -e "\tgot $i"fielseecho -e "\t\t\tnot matched $i"fidoneFind and kill processes
$ ps -aux | grep name_of_process | grep -v grep | awk '{print $2}' | while read pid; do sudo kill -9 $pid; done边栏推荐
猜你喜欢

Copy Siege Lion 5-minute online experience MindIR format model generation

安装Apache服务时出现的几个问题, AH00369,AH00526,AH00072....

第一章 绪论

Detailed steps to install MySQL

度量学习(Metric learning)—— 基于分类损失函数(softmax、交叉熵、cosface、arcface)

【论文阅读】Exploring Spatial Significance via Hybrid Pyramidal Graph Network for Vehicle Re-identificatio

Brief description of database and common operation guide

【五一专属】阿里云ECS大测评#五一专属|向所有热爱分享的“技术劳动者”致敬#

arm学习-1-开发板

TensorRT 5 初步认识
随机推荐
【Copy攻城狮日志】“一分钟”跑通MindSpore的LeNet模型
Code to celebrate the Dragon Boat Festival - Zongzi, your heart
深度学习理论——过拟合、欠拟合、正则化、优化器
【论文阅读】TransReID: Transformer-based Object Re-Identification
arm学习-1-开发板
Deep learning, "grain and grass" first--On the way to obtain data sets
LeetCode_Nov_4th_Week
MNIST手写数字识别 —— 基于Mindspore快速构建感知机实现十分类
集合--LinkedList
SFTP的用法
A code example of the PCL method in the domain of DG (Domain Generalization)
第二章 STA相关概念
Detailed steps to install MySQL
LeetCode_Dec_2nd_Week
代码庆端午--粽你心意
文件编辑器
【代码学习】
安装MySQL的详细步骤
LeetCode_Nov_2nd_Week
亚马逊云科技Build On-Amazon Neptune基于知识图谱的推荐模型构建心得