编写一个Shell脚本,该脚本可以将一个文件的文件名中的数字删掉。
#!/bin/bash
echo "Enter a filename:"
read FileName
newFileName=""
i=0
while [ $i -lt ${#FileName} ]
do
char=${FileName:i:1}
if [[ $char =~
编写一个Shell脚本,该脚本可以将一个文件的文件名中的数字删掉。
#!/bin/bash
echo "Enter a filename:"
read FileName
newFileName=""
i=0
while [ $i -lt ${#FileName} ]
do
char=${FileName:i:1}
if [[ $char =~