Monday, 15 December 2008

Line longer than x characters

Print every line that is longer than 80 characters:
        awk 'length($0) > 80' data
The sole rule here has a relational expression as its pattern and it has no action—so the default action, printing the record, is used.

No comments:

Post a Comment

Tweets by @sriramperumalla