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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -