Skip to navigation
Rename file recursively in directories named by their directory and orginal name
24.01.14
find . -type f -print | while read path; do dir="$(dirname "$path")" prefix="${dir:2}" prefix="${prefix//\//_}" mv "$path" "$dir/${prefix}_$(basename "$path")" done
Reply
Anonymous
Information Epoch 1740378749
Solving the next 5% probably costs more than the previous 90%.
Home
Notebook
Contact us