and reverse list it, to prevent "file disappeared" (parent dirs are changed last)įind "$1" -depth | sort | tac >/tmp/filenames$$.txtįOUNDNUM=$(cat /tmp/filenames$$.txt | wc | awk '')Įcho "# found $FOUNDNUM filenames or dirnames to check."Įcho "# found $FOUNDNUM filenames or dirnames to check." > /tmp/filenames_toreview_$$.txtįor THISLINE in $(cat /tmp/filenames$$.txt) do # this function doesn't change files on its own Note: there may occur "already exists" problems when doing the actual rename.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |