Operating System - HP-UX
1832069 Members
2988 Online
110034 Solutions
New Discussion

Re: List files skip files with numbers

 
Nitin Nigam
Occasional Advisor

List files skip files with numbers

Hi
I want to list all the files in the directory except for those files which have numbers in them (i.e. test2422... if they have number don't list them.

Thanks
2 REPLIES 2
Rajeev  Shukla
Honored Contributor

Re: List files skip files with numbers

Hi,
Try this command

ll|awk '{print $9}'|grep -v '[0-9]'

Cheers
Rajeev
T G Manikandan
Honored Contributor

Re: List files skip files with numbers

#ls |grep -v [0-9]

Thanks