If files are hard links they will have the same inode, you can get this information from stat but you'll have to stat every file on the filesystem until you've found all the links. In your case, I would use the -k flag to bzip2 to keep it from deleting the input file then copy the .bz2 file to the original file then delete the .bz2 file. | [reply] |
And how do you change the extension? Another example why extensions for fileformat are BAD!
| [reply] |
There is no such thing as an extension in most if not all unix-like filesystems. '.' is simply a valid filename character.
'The fickle fascination of and Everlasting God'
- Billy Corgan, The Smashing Pumpkins
| [reply] |
To change a file's extension, you rename it.
| [reply] |