7

awk - oneliner vs multiple line .

view full story
linux-howto

http://www.unix.com – Dear Awk Experts, I can write oneliner some time but find difficulty writing like a flow of a program in multiple lines, could you please help how to write awk program , like long awk programs, any help to start with, For example, How to write this in multiple line: Code: ls -l | awk '{sum+=$5}END{print sum}' what is equivalent of this in terms of file.awk if want to pass through a file. Thanks, (HowTos)