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 1732527840
Build a prototype as soon as possible.
Home
Notebook
Contact us