Re: OT: help with mawk
Hi ghcbc,
VARIABLENAME=$(mawk 'whatever') .
BTW: Your syntax seems strange to me. AFAIK it should be something like
mawk '/pattern/ {action}'
(see man mawk).
On Wed, Mar 17, 2004 at 07:19:27PM -0800, ghcbc@yahoo.com wrote:
> Hi,
>
> I am writing a shell script to process a dir tree looking for
> specific types of files, and creating a symbolic name of the found files by
> stripping the "/" chars from the path.
>
> Anyone know if I can get the output of
>
> mawk 'gsub("/","",$pathname) {print}'
>
> into another variable or even back into $pathname ?
>
> GC
>
HTH
--
Joachim Fahnenmüller
# Hi! I'm a .signature virus. Copy me into
# your ~/.signature to help me spread!
Reply to: