0
votes
1
comments
77,387
views

Using awk to print all columns from the nth to the last

0 votes, 0.00 avg. rating (0% score)
Getting a one-liner awk routine to print the nth field to the last should not be so complicated. For my wish list awk should have a function called ‘fields’ that would perform this tasks. It could have the same syntax as the substr command ie fields(5, 8) which would print fields 5 through 8. Being […]
0
votes
0
comments
2,759
views

Oneliners: Removing blank lines from a unix file

0 votes, 0.00 avg. rating (0% score)
Many of times I receive comma delimited files an they have blank lines after each record. I would like to use sed or awk. I need to remove all the blank lines from an input file and write into an output file.