wiered problem in listing the file

Hi All ,

I am having a set of file, when i list like ls -l *filename* it is listing all file. If is do ls -l filename.ext it is not listing the file. I dodnt know what will be the cause

Example:

$ ls -l  *13712.*  ---- listing in wild card worked
total 136864
-rw-r--r--   1 p68     sup   232245 Aug 31 10:09 98999.A
-rw-r--r--   1 p68     sup  1074998 Aug 31 10:09 98999.C
-rw-r--r--   1 p68     sup   967005 Aug 31 10:09 98999.N
-rw-r--r--   1 p68     sup        0 Aug 31 10:09 98999.P
-rw-r--r--   1 p68     sup  10554180 Aug 31 10:09 98999.R
-rw-r--r--   1 p68     sup  57209068 Aug 31 10:09 98999.U
$ ls 98999.A -----   Listing as invidual didnt worked
98999.A not found

Thanks in Advance,
Arun

To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags

```text
 and 
```

by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums

---------- Post updated at 19:04 ---------- Previous update was at 19:01 ----------

You are maybe not in the good directory... (you made an ls -l of *something*, it replied something completely different which makes me think you listed the content of a directory *something*...
My 2 cents...

No the file which i am searching in in same directory

Run your wildcard listing again but use "ls -lb" to see if your filename contains any unprintable characters.

And also:

ls -lisa  *13712.*  | sed -n l

(That is sed space hyphen enn space ell).

Armed with the two "ls" outputs we will know the name of the file.