[Solved] Problem with listing my files


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers [Solved] Problem with listing my files
# 1  
Old 09-03-2012
[Solved] Problem with listing my files

Hello,

In my directory i have got a list of files like below
Code:
unix1a.csv
unix1b.csv
unix1c.csv
unix1d.csv
unix1y.csv

I have done
Code:
ls -lrt unix1[a-d].csv

, how can i get my unix1y.csv also get listed along with this..
# 2  
Old 09-03-2012
Bug

For pattern [a-z] it will select any file which containing a-z after unix1

Code:
ls -lrt unix1[a-z].csv

# 3  
Old 09-03-2012
Hey Pamu,
Thanks for your quick reply. However I have other files as well in my directory which is of
Code:
unix1g.csv unix1f.csv

I dont want to get those listed. Please help.
# 4  
Old 09-03-2012
Code:
ls -lrt unix1[a-dy].csv

This User Gave Thanks to elixir_sinari For This Post:
# 5  
Old 09-03-2012
You are awesome mate..
# 6  
Old 09-03-2012
Quote:
Originally Posted by sathyaonnuix
Hey Pamu,
Thanks for your quick reply. However I have other files as well in my directory which is of
Code:
unix1g.csv unix1f.csv

I dont want to get those listed. Please help.
I thought you have only those files...Smilie

Any way elixir_sinari has already given the solution...Smilie
This User Gave Thanks to pamu For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Listing the file name and no of records in each files for the files created on a specific day

Hi, I want to display the file names and the record count for the files in the 2nd column for the files created today. i have written the below command which is listing the file names. but while piping the above command to the wc -l command its not working for me. ls -l... (5 Replies)
Discussion started by: Showdown
5 Replies

2. Programming

[Solved] Problem with fork() while reading files

Good evening everyone. I have my finals and I'm facing a problem: I have a for cycle that is supposed to fork 2 children but somehow it forks only the first one. What am I doing wrong ? #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h>... (5 Replies)
Discussion started by: pfpietro
5 Replies

3. 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

4. UNIX for Dummies Questions & Answers

[Solved] Listing files starting with p or f and with the exact length of 3 characters

Hello, I need some help. How can I list files starting with p or f and with the exact length of 3 characters? (2 Replies)
Discussion started by: airbebe
2 Replies

5. 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

6. Shell Programming and Scripting

[solved] merging two files and writing to another file- solved

i have two files as file1: 1 2 3 file2: a b c and the output should be: file3: 1~a 2~b 3~c (1 Reply)
Discussion started by: mlpathir
1 Replies

7. Shell Programming and Scripting

perl script for listing files and mailing the all files

Hi, I am new to perl: I need to write perl script to list all the files present in directory and mail should be come to my inbox with all the files present in that directory. advanced thanks for valuable inputs. Thanks Prakash GR (1 Reply)
Discussion started by: prakash.gr
1 Replies

8. 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

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