The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-03-2008
ammu ammu is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 79
Help with ls command

Hi,

I want to list some files in the directory but i want to exclude one file while listing.
Say for the following files

file.txt
file.txt0121212
file.txt4r45454
file.txt23423423
file.txtdaedfadf

i want to list files with file.txt* but not file.txt.
ls -ltr file.txt* would list file.txt too. I want to exclude file.txt.
Would be good if the command is a single liner

Thanks in advance
Ammu