2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 8916
/ 2 Years ago, mon, september 26, 2022, 9:58:33
In terminal using for loop we can add a part before or after the file name. But if we want to remove it how do we do this?
For example we can add .old after all .txt files name using the command bellow
$for i in *.txt
>do
> mv $i $i.old
> done
But my question is how do we remove this .old just using the same technique?
More From » command-line