1.

Solve : Unselect Files ---need help?

Answer»

Hi.. I have a problem on filtering the data in unix

The files is
         abc.done
         gba.done  
         a.txt
         c.txt
         b.sh
        

How can is select all the files without selcting the file that have extension of .done .
How can is USE 'll or ls' command to unselect .done data.

$ll -lrt

Please help me as i'm new in UNIX envoirement.
Thank YOuIf your ls version have a --hide option,
Code: [Select]ls -LTR --hide=*.done

or you can use combination of ls and grep
Code: [Select]ls -ltr |grep -v ".done"

or you can use find command
Code: [Select]find . -maxdepth 1 -not -name "*.done" #find only current directory

Thanks. Really appreciated. I've settled my problem BASED on ur guide
...and no doubt got full marks on your class ASSIGNMENT...   Quote

...and no doubt got full marks on your class assignment...  
hmm..didn't KNOW that. my bad


Discussion

No Comment Found