in reply to Re: Comandline arguements when perl code is getting executed from command line
in thread Comandline arguements when perl code is getting executed from command line
thanks a lot, the above too worked fine as expected.#!/usr/bin/ksh cat file | while read i do file_name=`echo $i | awk -F"|" '{print $1}'` #get the file_name export type=`echo $i | awk -F"|" '{print $2}'` #get the customer type + setting for the file perl -nle '/TABLE/ && print "$ARGV:$_:@ARGV"' $file_name $type done
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Comandline arguements when perl code is getting executed from command line
by sgt (Deacon) on Jan 16, 2007 at 10:44 UTC | |
|
Re^3: Comandline arguements when perl code is getting executed from command line
by ikegami (Patriarch) on Jan 16, 2007 at 15:46 UTC |