Home > OS >  About the shell programming problem
About the shell programming problem

Time:09-16

Use the shell, as a direct result of a directory. There are many similar a1 TXT, a2. TXT, a3. TXT... . A100. TXT file, please replace the number in the programming to realize the file name for a [1]. TXT, a [2]. TXT... A [100]. TXT,

CodePudding user response:

Replace with regular figures

CodePudding user response:

Learning, though I won't, but it should not be difficult to feel, under Windows with batch also can be achieved

CodePudding user response:

For the name in ` ls `
Do
$name a mv \ [` echo $name | awk -f. "" '{print $1}' | the cut - 2 - c 10 ` \]. TXT
The done
  • Related