Difference between revisions of "Linux command: awk"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "Comand line text processing Examples: <source lang="bash"> awk -F, '{print NR, length($0)}' filename.txt #print line number and line length </source>")
 
m (Protected "Linux command: awk" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))

Revision as of 15:35, 12 November 2015

Comand line text processing Examples:

awk -F, '{print NR, length($0)}' filename.txt  #print line number and line length