On Wed, 2 Feb 2005, Malcolm J. Currie wrote:
> > isn't found. Probably means whatever is defined in the "#!/..." statement
> > at the top of epath has moved home.
>
> Indeed. awk is located in a different place. Why do the various Linux
> suppliers mess around with the paths to fundamental commands and tools?
> Can't they agreed on a standard set of locations?
They have, but not for awk. Since it's not on the required list for /bin
you should probably assume it is a user command in /usr/bin.
> Is there a portable way to specify the path for an awk script?
If you'd asked Perl or Tcl, then yes there are ways, don't know a way for
awk, other than just
#!/bin/sh
awk 'stuff...'
but then you loose access to the command-line.
Cheers,
Peter.
|