当前位置:网站首页>[日常办公][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
边栏推荐
- MNIST Handwritten Digit Recognition - Lenet-5's First Commercial Grade Convolutional Neural Network
- No matching function for call to 'RCTBridgeModuleNameForClass'
- tmux概念和使用
- Introduction to Convolutional Neural Networks
- Amazon Cloud Technology Build On 2022 - AIot Season 2 IoT Special Experiment Experience
- 第一章 绪论
- PP-LiteSeg
- arm-3-中断体系结构
- 浅谈游戏音效测试点
- Various commands such as creating a new user in postgresql
猜你喜欢

target has libraries with conflicting names: libcrypto.a and libssl.a.

YOLOV5 V6.1 详细训练方法

度量学习(Metric learning、损失函数、triplet、三元组损失、fastreid)

迅雷关闭自动更新

光条提取中的连通域筛除

MOOSE平台官方第二个例子分析——关于创建Kernel,求解对流扩散方程

tensorRT5.15 使用中的注意点

Amazon Cloud Technology Build On 2022 - AIot Season 2 IoT Special Experiment Experience

【论文阅读】Multi-View Spectral Clustering with Optimal Neighborhood Laplacian Matrix

浅谈游戏音效测试点
随机推荐
[CV-Learning] Semantic Segmentation
光条中心提取方法总结(一)
MOOSE平台使用入门攻略——如何运行官方教程的例子
Thunderbolt turns off automatic updates
典型CCN网络——efficientNet(2019-Google-已开源)
第一章 绪论
Pytest常用插件
MOOSE平台官方第二个例子分析——关于创建Kernel,求解对流扩散方程
tensorRT教程——tensor RT OP理解(实现自定义层,搭建网络)
关于DG(域泛化)领域的PCL方法的代码实例
MNIST手写数字识别 —— 图像分析法实现二分类
深度学习理论——过拟合、欠拟合、正则化、优化器
学习资料re-id
LeetCode_Dec_1st_Week
Various commands such as creating a new user in postgresql
基于BiGRU和GAN的数据生成方法
多层LSTM
【论文阅读】SPANET: SPATIAL PYRAMID ATTENTION NETWORK FOR ENHANCED IMAGE RECOGNITION
arm交叉编译
YOLOV4流程图(方便理解)