当前位置:网站首页>[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
边栏推荐
- 深度学习理论——过拟合、欠拟合、正则化、优化器
- Code to celebrate the Dragon Boat Festival - Zongzi, your heart
- 代码庆端午--粽你心意
- Copy Siege Lion 5-minute online experience MindIR format model generation
- How to get started with MOOSE platform - an example of how to run the official tutorial
- Golang environment variable settings (2)--GOMODULE & GOPROXY
- MVC自定义配置
- Golang环境变量设置(二)--GOMODULE&GOPROXY
- FAREWARE ADDRESS
- Completely remove MySQL tutorial
猜你喜欢
Golang environment variable settings (2)--GOMODULE & GOPROXY
腾讯、网易纷纷出手,火到出圈的元宇宙到底是个啥?
Shell脚本执行的三种方式
arm learning-1-development board
target has libraries with conflicting names: libcrypto.a and libssl.a.
亚马逊云科技Build On-Amazon Neptune基于知识图谱的推荐模型构建心得
MNIST手写数字识别 —— 从二分类到十分类
深度学习理论——过拟合、欠拟合、正则化、优化器
基于BiGRU和GAN的数据生成方法
Copy Siege Lion 5-minute online experience MindIR format model generation
随机推荐
EL表达式
卷积神经网络入门详解
【论文阅读】Further Non-local and Channel Attention Networks for Vehicle Re-identification
LeetCode_22_Apr_4th_Week
MNIST手写数字识别 —— 图像分析法实现二分类
安装MySQL的详细步骤
在AWS-EC2中安装Minikube集群
LeetCode_Dec_1st_Week
关于DG(域泛化)领域的PCL方法的代码实例
语音驱动嘴型与面部动画生成的现状和趋势
[日常办公][shell]常用代码段
MNIST手写数字识别 —— 从感知机到卷积神经网络
tensorRT教程——使用tensorRT OP 搭建自己的网络
Pytest常用插件
Completely remove MySQL tutorial
How to grow into a senior engineer?
Golang environment variable settings (2)--GOMODULE & GOPROXY
如何用Pygame制作简单的贪吃蛇游戏
DRA821 环境搭建
MNIST手写数字识别 —— 从零构建感知机实现二分类