当前位置:网站首页>[日常办公][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
边栏推荐
- Windows10重置MySQL用户密码
- 机器学习——分类问题对于文字标签的处理(特征工程)
- 基于BiGRU和GAN的数据生成方法
- MNIST Handwritten Digit Recognition - Image Analysis Method for Binary Classification
- AWS uses EC2 to reduce the training cost of DeepRacer: DeepRacer-for-cloud practical operation
- MOOSE平台使用入门攻略——如何运行官方教程的例子
- 【Copy攻城狮日志】“一分钟”跑通MindSpore的LeNet模型
- MOOSE平台官方第二个例子分析——关于创建Kernel,求解对流扩散方程
- tensorRT教程——tensor RT OP理解(实现自定义层,搭建网络)
- 软著撰写注意事项
猜你喜欢

基于asp.net的法律援助平台的设计与实现(附项目链接)

Code to celebrate the Dragon Boat Festival - Zongzi, your heart
![[CV-Learning] Linear Classifier (SVM Basics)](/img/94/b48e34b2c215ca47f8ca25ce97547e.png)
[CV-Learning] Linear Classifier (SVM Basics)

LeetCode_Dec_3rd_Week

MNIST手写数字识别 —— Lenet-5首个商用级别卷积神经网络

【论文阅读】Anchor-Free Person Search

Data reading in yolov3 (1)

The second official example analysis of the MOOSE platform - about creating a Kernel and solving the convection-diffusion equation

Image-Adaptive YOLO for Object Detection in Adverse Weather Conditions

PyTorch
随机推荐
MNIST手写数字识别 —— 图像分析法实现二分类
latex-写论文时一些常用设置
Cut the hit pro subtitles export of essays
Copy攻城狮信手”粘“来 AI 对对联
SQL注入详解
Pytest常用插件
【五一专属】阿里云ECS大测评#五一专属|向所有热爱分享的“技术劳动者”致敬#
【深度学习日记】第一天:Hello world,Hello CNN MNIST
Unity ML-agents 参数设置解明
Copy Siege Lions "sticky" to AI couplets
基于asp.net的法律援助平台的设计与实现(附项目链接)
LeetCode_Nov_5th_Week
深度学习理论 —— 初始化、参数调节
fuser 使用—— YOLOV5内存溢出——kill nvidai-smi 无pid 的 GPU 进程
[Deep Learning Diary] Day 1: Hello world, Hello CNN MNIST
LeetCode_Nov_2nd_Week
【论文阅读】Further Non-local and Channel Attention Networks for Vehicle Re-identification
图像线性融合
PostgreSQL schema (Schema)
No matching function for call to ‘RCTBridgeModuleNameForClass‘