rename - Renaming files with inode number [UNIX] -
i'm trying rename file attaching underscore , inode number of said file before move directory.
the description is:
to avoid name conflicts in recycle bin, change file name original name followed underscore, followed inode file. example, if file named "f1" inode 1234 removed, file named f1_1234 in recycle bin.
any ideas?
it easy if parallel available :
ls f* | parallel 'mv {} newdir/{}_`stat -c%i {}`'
Comments
Post a Comment