Ls Command - Revision history http://wiki.ljackson.us/index.php?title=Ls_Command&action=history Revision history for this page on the wiki en MediaWiki 1.7.1 Fri, 29 Mar 2024 00:24:45 GMT Ljackson: /* List .png files and soft by second field */ http://wiki.ljackson.us/index.php?title=Ls_Command&diff=3053&oldid=prev <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> Mon, 08 Sep 2008 05:15:10 GMT Ljackson http://wiki.ljackson.us/Talk:Ls_Command Ljackson: /* Count files in directory */ http://wiki.ljackson.us/index.php?title=Ls_Command&diff=3052&oldid=prev <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> Mon, 08 Sep 2008 05:14:48 GMT Ljackson http://wiki.ljackson.us/Talk:Ls_Command Ljackson at 23:08, 10 January 2007 http://wiki.ljackson.us/index.php?title=Ls_Command&diff=1926&oldid=prev <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> Wed, 10 Jan 2007 23:08:01 GMT Ljackson http://wiki.ljackson.us/Talk:Ls_Command