当前位置:网站首页>[日常办公][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
边栏推荐
猜你喜欢

【论文阅读】Mining Cross-Image Semantics for Weakly Supervised Semantic Segmentation

【Copy攻城狮日志】飞浆学院强化学习7日打卡营-学习笔记

No matching function for call to ‘RCTBridgeModuleNameForClass‘

How to get started with MOOSE platform - an example of how to run the official tutorial

LeetCode_Dec_1st_Week

Image-Adaptive YOLO for Object Detection in Adverse Weather Conditions

Lee‘s way of Deep Learning 深度学习笔记

yoloV5 使用——训练速度慢,加速训练

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

Use of double pointers
随机推荐
基于BiGRU和GAN的数据生成方法
Amazon Cloud Technology Build On 2022 - AIot Season 2 IoT Special Experiment Experience
第三章 标准单元库(下)
深度学习理论 —— 初始化、参数调节
Deep Adversarial Decomposition: A Unified Framework for Separating Superimposed Images
第一章 绪论
MNIST handwritten digit recognition - based on Mindspore to quickly build a perceptron to achieve ten categories
MNIST手写数字识别 —— 从零构建感知机实现二分类
Endnote编辑参考文献
双向LSTM
PP-LiteSeg
在AWS-EC2中安装Minikube集群
第三章 标准单元库(上)
机器学习——分类问题对于文字标签的处理(特征工程)
makefile基础学习
Deep Learning Theory - Initialization, Parameter Adjustment
Image-Adaptive YOLO for Object Detection in Adverse Weather Conditions
Qt日常学习
Brief description of database and common operation guide
【CV-Learning】Convolutional Neural Network