This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# this is a script to recursively shorten all the file names in a directory | |
function shorten() { | |
cd "$1" | |
pwd | |
# rename all the files in the directory to numbers | |
# if nessisary, move them to the temp directory to avoid name collisions | |
i=1 |
OlderNewer