Revision | 996927272df0a00dbfe20e6b005ff6334ff7c12d (tree) |
---|---|
Time | 2019-11-21 06:05:44 |
Author | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
A bash script to rename all the files in a folder by adding them a prefix.
@@ -0,0 +1,7 @@ | ||
1 | + | |
2 | +#!/bin/bash | |
3 | + | |
4 | + | |
5 | +for file in *.dat; do | |
6 | + mv "$file" "D_$file" | |
7 | +done |