perl -nle 'print length' ./index.php
[root@aikaiyuan aikaiyuan]# cat index.php <?php /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' ); [root@aikaiyuan aikaiyuan]# perl -nle 'print length' ./index.php 5 3 79 71 2 21 3 0 3 61 2 12 3 30 0 51 55
转载请注明:爱开源 » 统计文件每行的字符数量