BreadCrumbs: Ls Command

Ls Command

From Luke Jackson

(Difference between revisions)
Jump to: navigation, search
Revision as of 05:14, 8 September 2008 (edit)
Ljackson (Talk | contribs)
(Count files in directory)
← Previous diff
Current revision (05:15, 8 September 2008) (edit)
Ljackson (Talk | contribs)
(List .png files and soft by second field)
 
Line 3: Line 3:
ls -1 | wc -l ls -1 | wc -l
-=== List .png files and soft by second field ===+=== List .png files and sort by second field ===
ls -1R | grep '.\.png' | sort +1 -t _ ls -1R | grep '.\.png' | sort +1 -t _

Current revision

Count files in directory

ls -1 | wc -l

List .png files and sort by second field

ls -1R | grep '.\.png' | sort +1 -t _
Personal tools