当前位置:网站首页>[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
边栏推荐
- [Copy Siege Lion Log] Flying Pulp Academy Intensive Learning 7-Day Punch Camp-Study Notes
- 【论文阅读】Mining Cross-Image Semantics for Weakly Supervised Semantic Segmentation
- 度量学习(Metric learning)—— 基于分类损失函数(softmax、交叉熵、cosface、arcface)
- The usefulness of bind() system call
- IEEE802.X协议族
- Postgresql snapshot
- 学习资料re-id
- 【代码学习】
- counting cycle
- arm学习-1-开发板
猜你喜欢
管道重定向
No matching function for call to 'RCTBridgeModuleNameForClass'
Code to celebrate the Dragon Boat Festival - Zongzi, your heart
Deep Learning Theory - Overfitting, Underfitting, Regularization, Optimizers
AWS uses EC2 to reduce the training cost of DeepRacer: DeepRacer-for-cloud practical operation
安装pyspider后运行pyspider all后遇到的问题
Deep learning, "grain and grass" first--On the way to obtain data sets
代码庆端午--粽你心意
arm-2-基础阶段
LeetCode_Nov_3rd_Week
随机推荐
迅雷关闭自动更新
Implementation of CAS lock-free queue
tensorRT5.15 使用中的注意点
打金?工作室?账号被封?游戏灰黑产离我们有多近
【论文阅读】Further Non-local and Channel Attention Networks for Vehicle Re-identification
Tensorflow/Pytorch安装(Anaconda环境下,无版本冲突,亲测有效)
tmux concept and usage
第三章 标准单元库(下)
MNIST手写数字识别 —— ResNet-经典卷积神经网络
target has libraries with conflicting names: libcrypto.a and libssl.a.
Code to celebrate the Dragon Boat Festival - Zongzi, your heart
ideal life
arm-3-中断体系结构
LeetCode_Nov_2nd_Week
tensorRT教程——使用tensorRT OP 搭建自己的网络
Pytest common plug-in
MNIST手写数字识别 —— 从感知机到卷积神经网络
安装MySQL的详细步骤
Golang环境变量设置(二)--GOMODULE&GOPROXY
YOLOV5 V6.1 详细训练方法