From: Lal, Neeraj (Neeraj.Lal@pfizer.com)
Date: Tue Dec 16 2003 - 16:56:12 EST
Thanks to Edward for helping in solving my problem
SRC_DIR_NAME='e:/kshell_prod/data/outfiles/notif'
RUN_DIR='e:/kshell_prod/ftp_ksh_script'
cd $SRC_DIR_NAME
ls PAPER*.TXT > $RUN_DIR/printfile_name
awk <$RUN_DIR/printfile_name >
e:/kshell_prod/ftp_ksh_script/printfile_name.bat \
'
{
printf "copy e:\\kshell_prod\\data\\outfiles\\notif\\" $0 "
\\\\abc\efg_pop\\\n";
} '
Neeraj Lal
Pfizer Inc.
Consultant CHC-IS
973-385-2734
-----Original Message-----
From: Lal, Neeraj [mailto:Neeraj.Lal@Pfizer.com]
Sent: Tuesday, December 16, 2003 11:12 AM
To: 'hpux-admin@dutchworks.nl'
Subject: [HPADM] Problem in awk script
Hi Admins
I have script
SRC_DIR_NAME='e:/kshell_test/data/outfiles/notif'
RUN_DIR='e:/kshell_test/ftp_ksh_script'
cd $SRC_DIR_NAME
ls PAPER*.TXT > $RUN_DIR/printfile_name
awk <$RUN_DIR/printfile_name >
e:/kshell_test/ftp_ksh_script/printfile_name.bat \
'
{
print "copy e:\kshell_test\data\outfiles\notif\" $0 " \\abc\efg_pop";
}
'
When I run this scripti get following error what is mistake I am doing
awk: file "[command line]": line 2: Syntax error Context is:
>>> "copy e:\kshell_test\data\outfiles\notif\" $0 " \
Thanks
Neeraj Lal
Pfizer Inc.
Consultant CHC-IS
973-385-2734
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:37 EDT