Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solaris and awk

Status
Not open for further replies.

ranjit

Technical User
Apr 14, 2000
131
0
0
GB
Is the "[^[:alnum:]]" notation for specifying a field seperator valid for Solaris?

echo "AA!BB,CC DD" | nawk -F "[^[:alnum:]]" '{print $3}'

The above works on AIX however not on Solaris
 
Worked OK on

SunOS mks3 5.8 Generic_117350-28 sun4u sparc SUNW,Sun-Blade-1000

although it required gawk rather than awk or nawk.

==========================================
toff.jpg
I phoned the local ramblers club today, and this bloke just went on and on.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top