My searching has not been able to find an answer to this, so I'm hoping someone here may have a solution.
I was doing some clean-up of unneeded files and found 3 files having names that begin with a dollar sign.
If I use [blue]cat[/blue] or [blue]more[/blue] to try to view the file, cat hangs and more responds "0652-252 Cannot take input from a terminal".
I then attempted to rename the files using [blue]mv[/blue] but it responds "mv: 0653-401 Cannot rename to...".
If I put the file name in quotes like:
[blue]mv "$filename" filename.txt[/blue], mv responds with
"mv: 0653-401 Cannot rename to ./filename.txt:
A file or directory in the path name does not exist."
If I use [blue]cp[/blue] to copy to a new name, I get a couple different responses.
If I do [blue]cp $filename newfilename.txt[/blue] cp insists on showing me its usage note. If I put the source name in quotes, the response is:
"cp: 0653-436 . is a directory.
Specify -r or -R to copy."
The files are in a directory I own and have access rights of 640 (which I am also unable to change). I retried all commands as root with the same results.
I'm still pretty inexperienced in AIX/UNIX so I'm really stuck on this. Any ideas?
In case you're wondering, these files came over during our migration from the mainframe well over a year ago... the mainframe had no problems with such file names.
Thanks in advance for any solutions.
I was doing some clean-up of unneeded files and found 3 files having names that begin with a dollar sign.
If I use [blue]cat[/blue] or [blue]more[/blue] to try to view the file, cat hangs and more responds "0652-252 Cannot take input from a terminal".
I then attempted to rename the files using [blue]mv[/blue] but it responds "mv: 0653-401 Cannot rename to...".
If I put the file name in quotes like:
[blue]mv "$filename" filename.txt[/blue], mv responds with
"mv: 0653-401 Cannot rename to ./filename.txt:
A file or directory in the path name does not exist."
If I use [blue]cp[/blue] to copy to a new name, I get a couple different responses.
If I do [blue]cp $filename newfilename.txt[/blue] cp insists on showing me its usage note. If I put the source name in quotes, the response is:
"cp: 0653-436 . is a directory.
Specify -r or -R to copy."
The files are in a directory I own and have access rights of 640 (which I am also unable to change). I retried all commands as root with the same results.
I'm still pretty inexperienced in AIX/UNIX so I'm really stuck on this. Any ideas?
In case you're wondering, these files came over during our migration from the mainframe well over a year ago... the mainframe had no problems with such file names.
Thanks in advance for any solutions.