Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4018434
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:58:57+00:00 2026-05-20T09:58:57+00:00

I create executable scripts for gawk by using the following #!: #!/usr/bin/gawk -f However

  • 0

I create executable scripts for gawk by using the following #!:

#!/usr/bin/gawk -f

However if I want to enable interval regular expressions I cannot seem to add --re-interval or -W re-interval in the #!.

#!/usr/bin/gawk --re-interval -f
#Above doesn't work

Is there a way to have a script activate this option without command line arguments, or a better way to enter the arguments so it works?

I am using cygwin if that matters for your solution

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:58:57+00:00Added an answer on May 20, 2026 at 9:58 am

    This isn’t possible. See http://hibernia.jakma.org/~paul/awk-faq.html#script-args for the reason and an alternative.

    How do I pass options to AWK in a
    bang-path?

    Short answer is that you can’t,
    because the kernel won’t parse a
    bang-path past the name of the script.
    The rest of the line is passed as a
    single string, in the second argument.
    I.e. this won’t work:

    #!/path/to/gawk --posix --re-interval -f

    ….awk script..

    Instead, use a shell script, e.g.:

    #!/bin/bash

    gawk --posix --re-interval -v foo=$1 '
    BEGIN { print foo } '

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I already create a virtual directory (cgi-bin) with permission : Scripts and Executable... When
I am using the following setup file to create executable using cx_freeze. Is it
I am using IronPython studio to create IronPython scripts and convert them into executables.
I want to create a file in the current directory (where the executable is
I want to create a binary executable for a relatively simple script that would
is there a way to create a standalone executable from a simple lua scripts?
I'm trying to create an environment using virtualenv. virtualenv test New python executable in
i want to create a command line tool in Ruby using Thor. This tool
I wonder if it is possible to create an executable module from a Python
When you create a link to an executable file intended for download (like say

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.