当前位置:网站首页>[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"fidone
Find and kill processes
$ ps -aux | grep name_of_process | grep -v grep | awk '{print $2}' | while read pid; do sudo kill -9 $pid; done
边栏推荐
- Shell脚本执行的三种方式
- CSDN spree -- college round table spree
- 【论文阅读】Mining Cross-Image Semantics for Weakly Supervised Semantic Segmentation
- MNIST handwritten digit recognition - based on Mindspore to quickly build a perceptron to achieve ten categories
- Install Minikube Cluster in AWS-EC2
- "A minute" Copy siege lion log 】 【 run MindSpore LeNet model
- 腾讯、网易纷纷出手,火到出圈的元宇宙到底是个啥?
- IEEE802.X协议族
- Pytest常用插件
- 【论文阅读】TransReID: Transformer-based Object Re-Identification
猜你喜欢
第二章 STA相关概念
文件编辑器
MNIST手写数字识别 —— 从二分类到十分类
AWS uses EC2 to reduce the training cost of DeepRacer: DeepRacer-for-cloud practical operation
How to get started with MOOSE platform - an example of how to run the official tutorial
彻底删除MySQL教程
【论文阅读】SPANET: SPATIAL PYRAMID ATTENTION NETWORK FOR ENHANCED IMAGE RECOGNITION
LeetCode_Nov_3rd_Week
Thunderbolt turns off automatic updates
Amazon Cloud Technology Build On-Amazon Neptune's Knowledge Graph-Based Recommendation Model Building Experience
随机推荐
Rules.make - suitable for viewing in edit mode
CAS无锁队列的实现
【论文阅读】Exploring Spatial Significance via Hybrid Pyramidal Graph Network for Vehicle Re-identificatio
浅谈外挂常识和如何防御
基于BiGRU和GAN的数据生成方法
典型CCN网络——efficientNet(2019-Google-已开源)
No matching function for call to ‘RCTBridgeModuleNameForClass‘
TensorRT 5 初步认识
Copy攻城狮信手”粘“来 AI 对对联
arm-3-中断体系结构
MOOSE平台官方第二个例子分析——关于创建Kernel,求解对流扩散方程
深度学习,“粮草”先行--浅谈数据集获取之道
2020-10-19
LeetCode_22_Apr_4th_Week
第一章 绪论
MNIST手写数字识别 —— Lenet-5首个商用级别卷积神经网络
tensorRT教程——tensor RT OP理解(实现自定义层,搭建网络)
Stream API
第二章 STA相关概念
Thunderbolt turns off automatic updates