![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| List all files that contain a specific directory | Sat510 | SUN Solaris | 7 | 04-17-2007 07:57 AM |
| List of files in sub directory along with their properties | ravikirankethe | UNIX for Dummies Questions & Answers | 3 | 11-13-2006 02:19 PM |
| cp list of files into another directory | pavan_test | UNIX for Dummies Questions & Answers | 4 | 05-08-2006 06:08 PM |
| list of files in one Directory | venkyA | UNIX for Dummies Questions & Answers | 3 | 06-24-2005 01:49 PM |
| list directory without use ls command? | ashamry | High Level Programming | 3 | 06-08-2004 01:17 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
can we list other than c files in a directory with only 'ls' command?
Guys,
can anybody help me in the following........ I have different types(c files,ordinary text files etc) in a directory. is there any way to list other than .c files using the 'ls' command only. i tried with the following. ls *.[!c]*. its not listing the .c files,but at the same time not listing the files which ends with c [eg: filec] is there anywhy to get it with only 'ls' command. Thanks in advance.... |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
why not use grep?
venkat: did you ever work for a company in chicago, Illinois? |
|
#3
|
||||
|
||||
|
Try this...
ls !(*.c) From man ksh.... Quote:
|
|
#4
|
|||
|
|||
|
Ygor,
it worked well.thanks a lot for ur info. |
|||
| Google The UNIX and Linux Forums |