- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- AWK Programming in Linux
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
07-23-2003 08:15 AM
07-23-2003 08:15 AM
AWK Programming in Linux
It shows the error close file
^parse error.
^ sign is coming underneath 'file'. ANybody has any idea what is happening.?
I would appreciate a quick answer from the expert s.
The script has been changed in some places to run uner linux. But this one we cant figure that out.
So please help me. If you need any more information please let me know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-23-2003 08:42 AM
07-23-2003 08:42 AM
Re: AWK Programming in Linux
are u using a awk file with all the commands and then calling it as
awk -f filename scriptname
or something similar.
if so check the filename.
some more inputs pls.
1. what is the name of the file it shows.
2. is it a data file or the commands file.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-23-2003 09:20 AM
07-23-2003 09:20 AM
Re: AWK Programming in Linux
Thanks for the quick reply.
the error is like this:
awk: ../Drilling/awk/Drills:81: close file
^parse error
awk: ../Drilling/awk/Drills:81: close fTmp
^parse error
awk: ../Drilling/awk/Drills:81: close fDrill
^parse error
^sign comes under the file,fTmp and fDrill respectively.
Those are files defined like this in the script
file=Dir"/"Class[Cur]
fTmp=Dir"/tmp/Unsorted_"MILL
fDrill=Dir"/tmp/Drill_"MILL
So I assume that they are data files. I cant find them anywhere anyway
This is a tricky situation for me.
I would appreciate a help
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-23-2003 09:38 AM
07-23-2003 09:38 AM
Re: AWK Programming in Linux
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-23-2003 10:02 AM
07-23-2003 10:02 AM
Re: AWK Programming in Linux
too little info. if u could post snippets from the file with the error line indicated or the entire file, can have a look.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-24-2003 08:42 PM
07-24-2003 08:42 PM
Re: AWK Programming in Linux
If you can make out something from this, please let me know. There are a number of script files in this application that uses awk. I am a null on awk and sed as such.
Thanks
Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-24-2003 09:12 PM
07-24-2003 09:12 PM
Re: AWK Programming in Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-25-2003 04:52 AM
07-25-2003 04:52 AM
Re: AWK Programming in Linux
If you script calls awk within the shell, it maybe a shell issue.
On 10.20 you probably were using the corn ksh shell. On the Linux machine you probably are using bash or the posix shell.
Awk is also a little different since they were compiled on different Operating Systems.
One more suggestion is to start with one step of the script at a time. This may help indicated which section of the script is having the port issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-25-2003 12:23 PM
07-25-2003 12:23 PM
Re: AWK Programming in Linux
If I put set -vx at the top of the script will it help me to debug, the program better.
I have not tried the close(file) command yet. So are you suggesting that it is a syntax issue.
Any other comments?
Thanks
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-28-2003 07:07 PM
07-28-2003 07:07 PM
Re: AWK Programming in Linux
I have a problem with a function that is being called. I am attaching that here. The error is. "[0.00] Unexpected '.'
Can any of you help us with this. We suspect that this function attached here is causing it after we ran the scripts with set -vx.
I would appreciate help.
Regards
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP