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
Revision as of 05:14, 8 September 2008 (edit)
Ljackson (Talk | contribs)
(Count files in directory)
Next diff →
Line 1: Line 1:
- 
- 
=== Count files in directory === === Count files in directory ===
ls -1 | wc -l ls -1 | wc -l
 +
 +=== List .png files and soft by second field ===
 +
 + ls -1R | grep '.\.png' | sort +1 -t _
[[Category:Mac OS X]] [[Category:Mac OS X]]
[[Category:Linux]] [[Category:Linux]]

Revision as of 05:14, 8 September 2008

Count files in directory

ls -1 | wc -l

List .png files and soft by second field

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