Upload rename.sh with huggingface_hub

#17
by Sentdex - opened
Files changed (1) hide show
  1. rename.sh +7 -0
rename.sh ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ for symlink in *; do
2
+ if [ -L "$symlink" ] && [ ! -d "$symlink" ]; then
3
+ target=$(readlink -f "$symlink")
4
+ filename=$(basename "$target")
5
+ mv "$target" "$symlink"
6
+ fi
7
+ done