Thursday, March 20, 2014

find which lines in a file are longer than N characters

$ perl -nle 'print length,"\t",$_ if length > 37' < /path/to/input/file Note that in the command N is, for instance, 37. View this command to comment, vote or add to favourites View all commands by fibo by David Winterbottom (codeinthehole.com) … Continue reading



from WordPress http://ift.tt/1hFzcvM

No comments:

Post a Comment