Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Korn shell programming - awk in particular
@ 1997-04-24  4:00 A. Mahendra Rajah
  1997-04-25  4:00 ` Pasqualino Caccavelli
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: A. Mahendra Rajah @ 1997-04-24  4:00 UTC (permalink / raw)





   I am new to Unix and would like to ask 2 questions:

   1)   Is there any good book that will teach me shell programming
        using the Korn shell?

   2)   How do I debug this awk problem?

        $ x = "this+is+a+line+with+equals"
                               
        I am trying to replace all the + characters with spaces.

        $ print $x | awk '{ i=gsub("+","",$0) }'
        "@awk: There is a regular expression error.
           *?+ not preceded by valid expression
         The source line number is 1.
         The error context is
                   { i=gsub("+","",$0) >>>   <<<

   Any help will be greatly appreciated.

   Thanks,

-----------------------  
   mahendra  (A. Mahendra Rajah :: Mahendra @ Meena.CC.URegina.CA)
   Systems Manager & Postmaster, 
   Dept of Computing Services, 
   University of Regina,
   Regina, Sask., Canada.
-----------------------  




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1997-04-25  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-24  4:00 Korn shell programming - awk in particular A. Mahendra Rajah
1997-04-25  4:00 ` Pasqualino Caccavelli
1997-04-25  4:00 ` Finnbarr P. Murphy
1997-04-25  4:00 ` Bob Vickers
1997-04-25  4:00 ` Stephen Stuart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox