Hi how can I only get the previous field but not last field from awk? but I can't use print $1....$2 as there are different fields in different line thank you Send instant messages to your online friends http://uk.messenger.yahoo.com