Search Results

Search: Posts Made By: Elmassimo
Forum: Solaris 02-16-2015
3,474
Posted By disedorgue
Hi, In awk, Begin body is execute before file...
Hi,
In awk, Begin body is execute before file reading, so no fields is setting at this moment.

Regards.
Forum: Solaris 02-16-2015
3,474
Posted By RavinderSingh13
Hello Elmassimo, On a Solaris/SunOS system,...
Hello Elmassimo,

On a Solaris/SunOS system, change awk to /usr/xpg4/bin/awk , /usr/xpg6/bin/awk , or nawk, this should work then.

EDIT: Also why not use print in spite of using BEGIN and END....
4,441
Posted By RudiC
That print $1 is a field within awk and has...
That print $1 is a field within awk and has nothing to do with the script's $1 (shell positional parameter).
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy