http://wiki.ljackson.us/index.php?title=Ls_Command&limit=100&action=history&feed=atom Ls Command - Revision history 2024-03-28T22:39:26Z Revision history for this page on the wiki MediaWiki 1.7.1 http://wiki.ljackson.us/index.php?title=Ls_Command&diff=3053&oldid=prev Ljackson: /* List .png files and soft by second field */ 2008-09-08T05:15:10Z <p><span class="autocomment">List .png files and soft by second field</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 05:15, 8 September 2008</td> </tr> <tr><td colspan="2" align="left"><strong>Line 3:</strong></td> <td colspan="2" align="left"><strong>Line 3:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> ls -1 | wc -l</td><td> </td><td style="background: #eee; font-size: smaller;"> ls -1 | wc -l</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">=== List .png files and <span style="color: red; font-weight: bold;">soft </span>by second field ===</td><td>+</td><td style="background: #cfc; font-size: smaller;">=== List .png files and <span style="color: red; font-weight: bold;">sort </span>by second field ===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> ls -1R | grep '.\.png' | sort +1 -t _</td><td> </td><td style="background: #eee; font-size: smaller;"> ls -1R | grep '.\.png' | sort +1 -t _</td></tr> </table> Ljackson http://wiki.ljackson.us/index.php?title=Ls_Command&diff=3052&oldid=prev Ljackson: /* Count files in directory */ 2008-09-08T05:14:48Z <p><span class="autocomment">Count files in directory</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 05:14, 8 September 2008</td> </tr> <tr><td colspan="2" align="left"><strong>Line 1:</strong></td> <td colspan="2" align="left"><strong>Line 1:</strong></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">=== Count files in directory ===</td><td> </td><td style="background: #eee; font-size: smaller;">=== Count files in directory ===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> ls -1 | wc -l</td><td> </td><td style="background: #eee; font-size: smaller;"> ls -1 | wc -l</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">=== List .png files and soft by second field ===</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ls -1R | grep '.\.png' | sort +1 -t _</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Mac OS X]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Mac OS X]]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Linux]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Linux]]</td></tr> </table> Ljackson http://wiki.ljackson.us/index.php?title=Ls_Command&diff=1926&oldid=prev Ljackson at 23:08, 10 January 2007 2007-01-10T23:08:01Z <p></p> <p><b>New page</b></p><div><br /> <br /> === Count files in directory ===<br /> <br /> ls -1 | wc -l<br /> <br /> [[Category:Mac OS X]]<br /> [[Category:Linux]]</div> Ljackson