Ok, I’ve been working with Solaris for over 10 years and have never seen this ...
I have a list of directories that includes both a file and a subdirectory with the same name:
-rw-r--r-- 1 root other 15922214 Nov 29 2006 msheehan drwxrwxrwx 12 msheehan sysadmin 2048 Mar 25 15:39 msheehan
I use the file to detect the contents of the file, and I get:
bash-2.03# file msheehan msheehan: directory bash-2.03# file msh* msheehan: ascii text msheehan: directory
I am not worried about the file, but I want to save the directory, so I will try rm:
bash-2.03
So here is my two-part question:
- What's up with that?
- How can I delete a file?
Jonathan
Edit: Thanks for the answers, guys, both (so far) have been helpful, but sending the list to the editor did the trick, ala:
bash-2.03# ls -l > jb.txt bash-2.03# vi jb.txt
What contained:
-rw-r--r-- 1 root other 15922214 Nov 29 2006 msheehab^?n drwxrwxrwx 12 msheehan sysadmin 2048 Mar 25 15:39 msheehan
Always be careful with the backspace key!
source share