Low Orbit Flux Logo 2 D

AWK How To Print All Fields

Printing all fields is one of the easiest things that you can do in AWK. There are several different ways that you can do this.

Print everything by default:


ps -ef | awk '{print}'

Print all columns explicitly:


ps -ef | awk '{print $0}'

This matches everything and prints by default:


ps -ef | awk '//'

Match everything and print everything by default:


ps -ef | awk '//{print}'

Match everything and print all lines explicitly:


ps -ef | awk '//{print $0}'