- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: nawk in HP UX 11
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2004 10:11 PM - last edited on тАО03-29-2013 12:25 AM by Cathy_xu
тАО09-01-2004 10:11 PM - last edited on тАО03-29-2013 12:25 AM by Cathy_xu
nawk in HP UX 11
Hi,
I see that there is no nawk command in HP UX 11. Our HP UX 10.2 Application uses nawk extensively in many script and we currently in the process of upgrading to HPUX 11. I want to know if I can just replace the nawks with the awk or is it going to lead me into trouble ?
Someone please help. Thanks in Advance.
-Gowrish
Moved from HP-UX Technical Documentation to HP-UX > languages
- Tags:
- nawk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2004 10:33 PM
тАО09-01-2004 10:33 PM
Re: nawk in HP UX 11
I think that better solution would be placing nawk in different directory ex: /opt/nawk
and correctly setting in your scripts PATH variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2004 11:00 PM
тАО09-01-2004 11:00 PM
Re: nawk in HP UX 11
The "new" (HP-UX 11) version of awk has replaced both awk and nawk in previous releeases. You will find all features from nawk in HP-UX 11 awk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2005 12:03 AM
тАО01-02-2005 12:03 AM
Re: nawk in HP UX 11
did u used awk instead of nawk on HP-UX 11. Was there any difference in their behaviour?. If so, let me know about it.
I am also using HP-UX 11(32 PA-RISC).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-02-2005 05:55 AM
тАО01-02-2005 05:55 AM
Re: nawk in HP UX 11
AFAIK, nawk and awk is the same in HPUX11.
If your scripts require nawk and you don't want or can't edit them, print:
ln -s /usr/bin/awk /usr/bin/nawk
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2005 04:28 AM
тАО11-09-2005 04:28 AM
Re: nawk in HP UX 11
this is not correct that in 11.23 awk replaces nawk:
If you try to use the followning command you see: it is not working under HP-UX awk,
but is working well with nawk under other OS
awk 'BEGIN { FS=":"; OFS=":" ; while ( getline < shadow > 0 ) shadow[$1] = $2 } /^[a-zA-Z0-9_]/ {$2 = shadow[$1] ; printf "%s\t%s\n", $1, $0 }' passwd