Linux bash change the names of files using loops

后端 未结 0 656
盖世英雄少女心
盖世英雄少女心 2021-02-07 00:56

Change names of files in Downloads to 1.txt , 2.txt ,...

I tried this:

#!/bin/bash for i in Downloads/* do for j in {1..3} do mv $i $j.txt done

but It doesn

相关标签:
回答
  • 消灭零回复
提交回复
热议问题