当前位置:网站首页>[日常办公][shell]常用代码段
[日常办公][shell]常用代码段
2022-08-04 05:31:00 【xcy6666】
数组, 字符串匹配
arr=("1995" "1995x" "1995ee" "1995ss" "199")
for i in ${arr[*]}; do
if [[ "${i}" =~ "1995".* ]]; then
echo "matched $i"
if [[ $i = "1995ee" ]]; then
echo -e "\tgot $i"
fi
else
echo -e "\t\t\tnot matched $i"
fi
done
查找并kill进程
$ ps -aux | grep name_of_process | grep -v grep | awk '{print $2}' | while read pid; do sudo kill -9 $pid; done
边栏推荐
- 在AWS-EC2中安装Minikube集群
- tmux概念和使用
- How to get started with MOOSE platform - an example of how to run the official tutorial
- FAREWARE ADDRESS
- MNIST Handwritten Digit Recognition - Lenet-5's First Commercial Grade Convolutional Neural Network
- Comparison of oracle's number and postgresql's numeric
- arm交叉编译
- Amazon Cloud Technology Build On-Amazon Neptune's Knowledge Graph-Based Recommendation Model Building Experience
- arm-2-基础阶段
- [CV-Learning] Linear Classifier (SVM Basics)
猜你喜欢

MNIST手写数字识别 —— 图像分析法实现二分类

动手学深度学习__数据操作

Install Minikube Cluster in AWS-EC2

No matching function for call to 'RCTBridgeModuleNameForClass'

在AWS-EC2中安装Minikube集群

Amazon Cloud Technology Build On-Amazon Neptune's Knowledge Graph-Based Recommendation Model Building Experience

【深度学习日记】第一天:Hello world,Hello CNN MNIST

PCL1.12 解决memory.h中EIGEN处中断问题

Use of double pointers

【论文阅读】Multi-View Spectral Clustering with Optimal Neighborhood Laplacian Matrix
随机推荐
AWS uses EC2 to reduce the training cost of DeepRacer: DeepRacer-for-cloud practical operation
Unity ML-agents 参数设置解明
Copy Siege Lion 5-minute online experience MindIR format model generation
Use of double pointers
Pytest常用插件
PyTorch
yoloV5 使用——训练速度慢,加速训练
MNIST手写数字识别 —— 从二分类到十分类
浅谈外挂常识和如何防御
MNIST Handwritten Digit Recognition - From Perceptrons to Convolutional Neural Networks
[CV-Learning] Semantic Segmentation
在AWS-EC2中安装Minikube集群
MNIST手写数字识别 —— Lenet-5首个商用级别卷积神经网络
Pytorch问题总结
Windows10重置MySQL用户密码
fuser 使用—— YOLOV5内存溢出——kill nvidai-smi 无pid 的 GPU 进程
Copy攻城狮信手”粘“来 AI 对对联
浅谈游戏音效测试点
MNIST手写数字识别 —— 图像分析法实现二分类
MNIST手写数字识别 —— 从零构建感知机实现二分类