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
awk 'NF { $0=++a " :" $0 }; { print }' file.txt