
shell
李牧勋
lichgu@aliyun.com
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
shell的使用
1常用符号*$**:所有参数2 常用命令awk原创 2022-06-25 16:01:36 · 304 阅读 · 0 评论 -
批量打包文件
批量打包文件#!/bin/bashcurrentDir=$(pwd)echo $currentDirfor file in $(ls ./)do if [ -d $file ]; then echo $file cd $currentDir/$file tar -zcvf ../$file.tar.gz ./* cd $currentDir fidone原创 2021-09-24 16:21:56 · 180 阅读 · 0 评论 -
批量截取修改文件名
批量截取修改文件名#!/bin/bashcd ./cnfor mp3_file in *.mp3doafter_name=echo $mp3_file|awk 'BEGIN {FS= " "}{print $1}'mv “mp3file""mp3_file" "mp3file""after_name”.mp3done原创 2021-06-04 19:57:01 · 153 阅读 · 0 评论