Shell脚本实战之文件批量创建和修改
一、脚本要求
- 一、脚本要求
- 二、脚本内容
- 三、脚本运行结果
1.所有操作在/python下 2.批量创建12个以py后缀结尾的文件,文件名中必须包含_hcip,文件名除了_hcip固定字符串外,文件名还包含8个小写随机的字符。 3.创建的12个文件后缀名改为大写的PY,固定字符串改为_hcie
二、脚本内容#!/bin/bash
##########################################################
#File Name:create_file.sh
#Version:V1.0
#Aurhor:
#Emali:
#Created Time:2021-06-15 02:56:59
#Description: create files & modify files
###########################