当前位置:网站首页>[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"fidoneFind and kill processes
$ ps -aux | grep name_of_process | grep -v grep | awk '{print $2}' | while read pid; do sudo kill -9 $pid; done边栏推荐
猜你喜欢

Completely remove MySQL tutorial

Question 1000: Input two integers a and b, calculate the sum of a+b, this question is multiple sets of test data

【论文阅读】Exploring Spatial Significance via Hybrid Pyramidal Graph Network for Vehicle Re-identificatio

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

Cut the hit pro subtitles export of essays

MNIST Handwritten Digit Recognition - Building a Perceptron from Zero for Two-Classification

MNIST手写数字识别 —— ResNet-经典卷积神经网络

DRA821 环境搭建

Copy攻城狮5分钟在线体验 MindIR 格式模型生成

浅谈游戏音效测试点
随机推荐
MNIST手写数字识别 —— 从二分类到十分类
安装Apache服务时出现的几个问题, AH00369,AH00526,AH00072....
Introduction to Convolutional Neural Networks
SFTP的用法
counting cycle
Copy攻城狮的年度之“战”|回顾2020
YOLOV5 V6.1 详细训练方法
[日常办公][ssh]cheatsheet
多层LSTM
Cut the hit pro subtitles export of essays
第一章 绪论
Fabric v1.1 环境搭建
[Deep Learning Diary] Day 1: Hello world, Hello CNN MNIST
强化学习中,Q-Learning与Sarsa的差别有多大?
【论文阅读】TransReID: Transformer-based Object Re-Identification
target has libraries with conflicting names: libcrypto.a and libssl.a.
Implementation of CAS lock-free queue
Shell脚本执行的三种方式
【论文阅读】Mining Cross-Image Semantics for Weakly Supervised Semantic Segmentation
集合---ArrayList的底层