Skip to content

Instantly share code, notes, and snippets.

@lexdene
Last active January 1, 2016 20:08
Show Gist options
  • Save lexdene/8194586 to your computer and use it in GitHub Desktop.
Save lexdene/8194586 to your computer and use it in GitHub Desktop.
for file_path in $(find . -name '*.cpp');do clean_file_path=${file_path:2} ;mv -v $file_path ${clean_file_path//\//_} ; done
# 第1版
for file_path in $(find Images);do clean_file_path=$file_path ;mv -v $file_path ${file_path%/*}/${clean_file_path//\//_} ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment