ksh script w/o perl

Bob.Kelley_at_BRINKSINC.COM
Date: 01/29/04

  • Next message: Robert Miller: "FW: Problems with automounter between AIX5.2 and 4.3.3"
    Date:         Thu, 29 Jan 2004 14:44:20 -0600
    To: aix-l@Princeton.EDU
    
    

    Anybody have a quick way to set each line of output from a file to a
    different variable without using perl?

    Eg

    [root@nad0019aixd05/home..oracle]# cat /etc/oratab|grep -v "#"|grep -v
    N|cut -c -8

    PRODUCES two lines:

    clipsdv1
    cashsqa1

    how can I painlessly set these in a script to variables DB1 and DB2?

    Bobby Kelley Jr.
    972-877-5341


  • Next message: Robert Miller: "FW: Problems with automounter between AIX5.2 and 4.3.3"

    Relevant Pages

    • Antwort: Re: Access into MVS DB2 using DBI or ???
      ... perl to access a DB2 on a mainframe nor on any other operating system. ... On the machine where you run your perl script you need the db2-connection ... > use DBI; ... experience connecting to MVS DB2 so I can't offer any more help here. ...
      (perl.dbi.users)
    • Re: DBI/DBD::DB2
      ... you don't compile a module in the Perl install tree - you compile ... Perhaps the capitalisation of DBD 'DB2' isn't right. ...
      (perl.dbi.users)
    • Using Perl DB2 driver (DBD-DB2) with DB2 UDB Version 8 64bit for AIX 5.2
      ... If you're having problems getting DBD-DB2 to work with 64-bit DB2 UDB ... Cannot load module error when using DB2 Perl driver with DB2 UDB ... Run the following command as root: ... To install the eFix, you can run the following command as root: ...
      (perl.dbi.users)
    • RE: DBD::DB2 Error
      ... I finally got past the license issue. ... It looks as though the DB2 9 I ... Perl Version = 5.008008 ... DBI Version = 1.53 ...
      (perl.dbi.users)
    • RE: Antwort: Re: Access into MVS DB2 using DBI or ???
      ... > perl to access a DB2 on a mainframe nor on any other operating system. ... I have done nothing with DB2 on my XP machine. ... > of DBI modules. ...
      (perl.dbi.users)