BreadCrumbs: Ls Command

Ls Command

From Luke Jackson

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:08, 10 January 2007 (edit)
Ljackson (Talk | contribs)

← Previous diff
Current revision (05:15, 8 September 2008) (edit)
Ljackson (Talk | contribs)
(List .png files and soft by second field)
 
Line 1: Line 1:
- 
- 
=== Count files in directory === === Count files in directory ===
ls -1 | wc -l ls -1 | wc -l
 +
 +=== List .png files and sort by second field ===
 +
 + ls -1R | grep '.\.png' | sort +1 -t _
[[Category:Mac OS X]] [[Category:Mac OS X]]
[[Category:Linux]] [[Category:Linux]]

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