User Tools

Site Tools


awk:number_only_non-blank_lines_in_files

AWK - Number only non-blank lines in files

awk 'NF { $0=++a " :" $0 }; { print }' file.txt
awk/number_only_non-blank_lines_in_files.txt · Last modified: 2020/09/23 16:05 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki