wiered problem in listing the file


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users wiered problem in listing the file
# 1  
Old 08-31-2009
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:
Code:
$ 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

Last edited by vbe; 08-31-2009 at 02:01 PM.. Reason: code tags added
# 2  
Old 08-31-2009
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 [code] and [/code] 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...
# 3  
Old 08-31-2009
No the file which i am searching in in same directory
# 4  
Old 08-31-2009
Run your wildcard listing again but use "ls -lb" to see if your filename contains any unprintable characters.
# 5  
Old 09-01-2009
And also:

Code:
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

[Solved] How to remove listing of current user cmd from ps -ef listing?

Hi All, Could you please help to resolve my following issues: Problem Description: Suppose my user name is "MI90". i.e. $USER = MI90 when i run below command, i get all the processes running on the system containing name MQ. ps -ef | grep MQ But sometimes it lists... (8 Replies)
Discussion started by: KDMishra
8 Replies

2. UNIX for Dummies Questions & Answers

[Solved] Problem with listing my files

Hello, In my directory i have got a list of files like below unix1a.csv unix1b.csv unix1c.csv unix1d.csv unix1y.csv I have done ls -lrt unix1.csv, how can i get my unix1y.csv also get listed along with this.. (5 Replies)
Discussion started by: sathyaonnuix
5 Replies

3. UNIX for Dummies Questions & Answers

Problem listing processes

hi! i wrote this script(ubuntu os): clear echo "number of running processes" ps -ef | wc -lbut i can't get the number of my currently running processes... is there a way to see HOW MANY processes are running to my system? ---------- Post updated at 11:20 PM ---------- Previous update... (2 Replies)
Discussion started by: strawhatluffy
2 Replies

4. Shell Programming and Scripting

How do I get only the file name from a listing?

Hi, I am trying to get a file name only. Could anyone help me on the same. Meaning I have a file say list.out which holds below output ./xyz/abc.txt ./xyz/hij.txt I want an output as below abc.txt hij.txt i.e I want to delete everything before abc.txt Please help me out if any one has... (4 Replies)
Discussion started by: spark
4 Replies

5. AIX

user login problem & Files listing problem.

1) when user login to the server the session got colosed. How will resolve? 2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem? Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies

6. Shell Programming and Scripting

Find problem listing directories even -type f

Hi All, #!/bin/ksh find /home/other -ls -type f -xdev | sort -nrk7 | head -2 >bigfile.txt The above is my script, which writes the large file into a file called bigfile.txt. My script contains only the above two lines. after execution i am getting the output like find: cannot chdir to... (1 Reply)
Discussion started by: Arunprasad
1 Replies

7. Shell Programming and Scripting

problem with listing of directory structure

Hi When im listing (ls -al ) its listing directories without / at the end of directories dir1 dir2 dir3 and i need to list directories with dir1/ dir2/ dir3/ and this should not be made by command ls -F / should be embedded at the last since one of the scripts reads directories... (1 Reply)
Discussion started by: vasanthan
1 Replies

8. Solaris

file listing ...

Hi experts, I have several hundred files for everyday each month (below example is September)- PP023149200709010546.......PP028023200709012300 PP023150200709020023.......PP026096200709022134 .. .. PP021256200709201920.......PP025576200709202218 .. ..... (3 Replies)
Discussion started by: thepurple
3 Replies

9. UNIX for Dummies Questions & Answers

Recursive directory listing without listing files

Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories. The following command also shows the files but I only want to see the directories. ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies

10. UNIX for Dummies Questions & Answers

File listing

I can't seem to list all the files that begin with a lower case or upper case letter between a-m while being in that directory? Please help I've tried everything from all the ls commands to even grep commands. b (5 Replies)
Discussion started by: Astudent
5 Replies
Login or Register to Ask a Question