![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gawk and gensub | ripat | Shell Programming and Scripting | 2 | 05-10-2008 12:20 PM |
| awk,gawk in bat file | andrej | Shell Programming and Scripting | 0 | 05-09-2008 05:45 AM |
| gawk and strftime() | ripat | Shell Programming and Scripting | 2 | 05-07-2008 11:30 AM |
| gawk HELP | sandeep_hi | Shell Programming and Scripting | 6 | 06-19-2006 05:56 AM |
| rs and ors in gawk ...???? | moxxx68 | Shell Programming and Scripting | 2 | 10-05-2004 09:52 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
starting gawk from env
Hi!
This is my first post here - regards! I wrote gawk script with the first line: #!/usr/bin/env gawk -f but it does not work. Why? Probably env is trying to exec "gawk -f" instead of "gawk". I am also using env to start wish and there are no problems. Thanks |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
You may need to tell it to ignore the -f by either quoting or using \-f
|
|
#3
|
|||
|
|||
|
Thanks, but it does not help...
I obtained: /usr/bin/env: gawk '-f': No such file or directory I cannot see logical reason for: #!/usr/bin/env gawk -f wrong operation. Maybe a bug... Regards |
|
#4
|
||||
|
||||
|
#5
|
|||
|
|||
|
Quote:
#! /usr/bin/env gawk -f |
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
|||
|
|||
|
Thanks folks!
Switching to #!/bin/sh seems to be good idea in order to obtain portability. Regards |
|||
| Google The UNIX and Linux Forums |