4 replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
source | link

I am using Fedora 24.

I have tried many different ways to do this. I've tried it under a Windows VM with the folder in question as a shared folder.

I've tried using the 'rename' command.

I've tried using the 'mv' command.

I've tried renaming them in 'Files'.

I've tried setting the filename to a variable with inode and then renaming. (lost the source)

26477098 'File | With Pipe.png'
xyz=`ls -i|grep 26477098|sed 's/26477098 //'`
mv "$xyz" File\ --\ With\ Pipe.png
mv: cannot stat 'File | With Pipe.png': No such file or directory

I keep getting the 'No such file or directory' error whatever way I try and do this.

I've also tried renaming them by using their inode number (http://unix.stackexchange.com/questions/235396/mv-file-with-garbled-name-by-inode-number"mv" file with garbled name by inode number?)

26477098 'File | With Pipe.png'
[user@computer Pictures]$ find . -inum 26477098 -exec mv {} File\ --\ With\ Pipe.png \;
mv: cannot move './File | With Pipe.png' to 'File -- With Pipe.png': No such file or directory
[user@computer Pictures]$ find . -inum 26477098 -print0 | xargs -0 mv -t a.png
mv: failed to access 'a.png': No such file or directory

If I try to open the file, it says "No images found..."

I was thinking maybe I could hard link to the inode and then try and delete the original file, but I can't figure out a way to do that.

Any thoughts?

*****************************EDIT*************************************

[risshuu@centurion Pictures]$ mv "File | With Pipe.png" "File -- With Pipe.png" 
mv: cannot stat 'File | With Pipe.png': No such file or directory
[risshuu@centurion Pictures]$ mv File\ \|\ With\ Pipe.png File\ --\ With\ Pipe.png
mv: cannot stat 'File | With Pipe.png': No such file or directory

I have quite a few of these files, and none of these work on them.

I just created a new file with a pipe and I have no problem renaming it to not have the pipe in it. There must be something else going on as well because I can't 'cat' the contents or open the file--I can't even remove any of the files! Are there any other file verification commands or something I can use or ways I can delete these files from the filesystem??

I am using Fedora 24.

I have tried many different ways to do this. I've tried it under a Windows VM with the folder in question as a shared folder.

I've tried using the 'rename' command.

I've tried using the 'mv' command.

I've tried renaming them in 'Files'.

I've tried setting the filename to a variable with inode and then renaming. (lost the source)

26477098 'File | With Pipe.png'
xyz=`ls -i|grep 26477098|sed 's/26477098 //'`
mv "$xyz" File\ --\ With\ Pipe.png
mv: cannot stat 'File | With Pipe.png': No such file or directory

I keep getting the 'No such file or directory' error whatever way I try and do this.

I've also tried renaming them by using their inode number (http://unix.stackexchange.com/questions/235396/mv-file-with-garbled-name-by-inode-number)

26477098 'File | With Pipe.png'
[user@computer Pictures]$ find . -inum 26477098 -exec mv {} File\ --\ With\ Pipe.png \;
mv: cannot move './File | With Pipe.png' to 'File -- With Pipe.png': No such file or directory
[user@computer Pictures]$ find . -inum 26477098 -print0 | xargs -0 mv -t a.png
mv: failed to access 'a.png': No such file or directory

If I try to open the file, it says "No images found..."

I was thinking maybe I could hard link to the inode and then try and delete the original file, but I can't figure out a way to do that.

Any thoughts?

*****************************EDIT*************************************

[risshuu@centurion Pictures]$ mv "File | With Pipe.png" "File -- With Pipe.png" 
mv: cannot stat 'File | With Pipe.png': No such file or directory
[risshuu@centurion Pictures]$ mv File\ \|\ With\ Pipe.png File\ --\ With\ Pipe.png
mv: cannot stat 'File | With Pipe.png': No such file or directory

I have quite a few of these files, and none of these work on them.

I just created a new file with a pipe and I have no problem renaming it to not have the pipe in it. There must be something else going on as well because I can't 'cat' the contents or open the file--I can't even remove any of the files! Are there any other file verification commands or something I can use or ways I can delete these files from the filesystem??

I am using Fedora 24.

I have tried many different ways to do this. I've tried it under a Windows VM with the folder in question as a shared folder.

I've tried using the 'rename' command.

I've tried using the 'mv' command.

I've tried renaming them in 'Files'.

I've tried setting the filename to a variable with inode and then renaming. (lost the source)

26477098 'File | With Pipe.png'
xyz=`ls -i|grep 26477098|sed 's/26477098 //'`
mv "$xyz" File\ --\ With\ Pipe.png
mv: cannot stat 'File | With Pipe.png': No such file or directory

I keep getting the 'No such file or directory' error whatever way I try and do this.

I've also tried renaming them by using their inode number ("mv" file with garbled name by inode number?)

26477098 'File | With Pipe.png'
[user@computer Pictures]$ find . -inum 26477098 -exec mv {} File\ --\ With\ Pipe.png \;
mv: cannot move './File | With Pipe.png' to 'File -- With Pipe.png': No such file or directory
[user@computer Pictures]$ find . -inum 26477098 -print0 | xargs -0 mv -t a.png
mv: failed to access 'a.png': No such file or directory

If I try to open the file, it says "No images found..."

I was thinking maybe I could hard link to the inode and then try and delete the original file, but I can't figure out a way to do that.

Any thoughts?

*****************************EDIT*************************************

[risshuu@centurion Pictures]$ mv "File | With Pipe.png" "File -- With Pipe.png" 
mv: cannot stat 'File | With Pipe.png': No such file or directory
[risshuu@centurion Pictures]$ mv File\ \|\ With\ Pipe.png File\ --\ With\ Pipe.png
mv: cannot stat 'File | With Pipe.png': No such file or directory

I have quite a few of these files, and none of these work on them.

I just created a new file with a pipe and I have no problem renaming it to not have the pipe in it. There must be something else going on as well because I can't 'cat' the contents or open the file--I can't even remove any of the files! Are there any other file verification commands or something I can use or ways I can delete these files from the filesystem??

3 edited tags
| link
2 added 833 characters in body
source | link

I am using Fedora 24.

I have tried many different ways to do this. I've tried it under a Windows VM with the folder in question as a shared folder.

I've tried using the 'rename' command.

I've tried using the 'mv' command.

I've tried renaming them in 'Files'.

I've tried setting the filename to a variable with inode and then renaming. (lost the source)

26477098 'File | With Pipe.png'
xyz=`ls -i|grep 26477098|sed 's/26477098 //'`
mv "$xyz" File\ --\ With\ Pipe.png
mv: cannot stat 'File | With Pipe.png': No such file or directory

I keep getting the 'No such file or directory' error whatever way I try and do this.

I've also tried renaming them by using their inode number (http://unix.stackexchange.com/questions/235396/mv-file-with-garbled-name-by-inode-number)

26477098 'File | With Pipe.png'
[user@computer Pictures]$ find . -inum 26477098 -exec mv {} File\ --\ With\ Pipe.png \;
mv: cannot move './File | With Pipe.png' to 'File -- With Pipe.png': No such file or directory
[user@computer Pictures]$ find . -inum 26477098 -print0 | xargs -0 mv -t a.png
mv: failed to access 'a.png': No such file or directory

If I try to open the file, it says "No images found..."

I was thinking maybe I could hard link to the inode and then try and delete the original file, but I can't figure out a way to do that.

Any thoughts?

*****************************EDIT*************************************

[risshuu@centurion Pictures]$ mv "File | With Pipe.png" "File -- With Pipe.png" 
mv: cannot stat 'File | With Pipe.png': No such file or directory
[risshuu@centurion Pictures]$ mv File\ \|\ With\ Pipe.png File\ --\ With\ Pipe.png
mv: cannot stat 'File | With Pipe.png': No such file or directory

I have quite a few of these files, and none of these work on them.

I just created a new file with a pipe and I have no problem renaming it to not have the pipe in it. There must be something else going on as well because I can't 'cat' the contents or open the file--I can't even remove any of the files! Are there any other file verification commands or something I can use or ways I can delete these files from the filesystem??

I am using Fedora 24.

I have tried many different ways to do this. I've tried it under a Windows VM with the folder in question as a shared folder.

I've tried using the 'rename' command.

I've tried using the 'mv' command.

I've tried renaming them in 'Files'.

I've tried setting the filename to a variable with inode and then renaming. (lost the source)

26477098 'File | With Pipe.png'
xyz=`ls -i|grep 26477098|sed 's/26477098 //'`
mv "$xyz" File\ --\ With\ Pipe.png
mv: cannot stat 'File | With Pipe.png': No such file or directory

I keep getting the 'No such file or directory' error whatever way I try and do this.

I've also tried renaming them by using their inode number (http://unix.stackexchange.com/questions/235396/mv-file-with-garbled-name-by-inode-number)

26477098 'File | With Pipe.png'
[user@computer Pictures]$ find . -inum 26477098 -exec mv {} File\ --\ With\ Pipe.png \;
mv: cannot move './File | With Pipe.png' to 'File -- With Pipe.png': No such file or directory
[user@computer Pictures]$ find . -inum 26477098 -print0 | xargs -0 mv -t a.png
mv: failed to access 'a.png': No such file or directory

If I try to open the file, it says "No images found..."

I was thinking maybe I could hard link to the inode and then try and delete the original file, but I can't figure out a way to do that.

Any thoughts?

I am using Fedora 24.

I have tried many different ways to do this. I've tried it under a Windows VM with the folder in question as a shared folder.

I've tried using the 'rename' command.

I've tried using the 'mv' command.

I've tried renaming them in 'Files'.

I've tried setting the filename to a variable with inode and then renaming. (lost the source)

26477098 'File | With Pipe.png'
xyz=`ls -i|grep 26477098|sed 's/26477098 //'`
mv "$xyz" File\ --\ With\ Pipe.png
mv: cannot stat 'File | With Pipe.png': No such file or directory

I keep getting the 'No such file or directory' error whatever way I try and do this.

I've also tried renaming them by using their inode number (http://unix.stackexchange.com/questions/235396/mv-file-with-garbled-name-by-inode-number)

26477098 'File | With Pipe.png'
[user@computer Pictures]$ find . -inum 26477098 -exec mv {} File\ --\ With\ Pipe.png \;
mv: cannot move './File | With Pipe.png' to 'File -- With Pipe.png': No such file or directory
[user@computer Pictures]$ find . -inum 26477098 -print0 | xargs -0 mv -t a.png
mv: failed to access 'a.png': No such file or directory

If I try to open the file, it says "No images found..."

I was thinking maybe I could hard link to the inode and then try and delete the original file, but I can't figure out a way to do that.

Any thoughts?

*****************************EDIT*************************************

[risshuu@centurion Pictures]$ mv "File | With Pipe.png" "File -- With Pipe.png" 
mv: cannot stat 'File | With Pipe.png': No such file or directory
[risshuu@centurion Pictures]$ mv File\ \|\ With\ Pipe.png File\ --\ With\ Pipe.png
mv: cannot stat 'File | With Pipe.png': No such file or directory

I have quite a few of these files, and none of these work on them.

I just created a new file with a pipe and I have no problem renaming it to not have the pipe in it. There must be something else going on as well because I can't 'cat' the contents or open the file--I can't even remove any of the files! Are there any other file verification commands or something I can use or ways I can delete these files from the filesystem??

1
source | link