1

wc -L giving incorrect length of longest line

view story
linux-howto

http://www.unix.com – Running below line gives 3957 as length of longest line in file 20121119_SRMNotes_init.dat Code: awk ' { if ( length > 3950 ) { x = length } }END{ print x }' 20121119_SRMNotes_init.dat While wc -L 20121119_SRMNotes_init.dat gives output as 4329. Why is there a difference between these two commands. Thanks (HowTos)