such .sed file?
|
Original Message
|
Name: Jessica
Date: January 1, 2003 at 16:29:08 Pacific
Subject: such .sed file?OS: Solaris6CPU/Ram: 200 |
Comment: Hi, The guy before processing the reports and change the format using sed, he use like this: ... cat /usr/local/bin/abcd.sed $i > /tmp/$i ... and I more the abcd.sed and just get two line: :::::::: (ECONF2) run ECONF2 what's that? Can somebody explain it to me, thanks!
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: David Perry
Date: January 1, 2003 at 16:45:07 Pacific
|
Reply: (edit)Can you please post a sample of the data. Does the abcd.sed script really only contain --------------------- (ECONF2) run ECONF2 --------------------- The cat command would append multiple files together. if the $i is set ( I'm guessing you may be using csh ) then the above would prepend the contents of abcd.sed to a new file created in the tmp directory with the same name as the original file.
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: Jessica
Date: January 3, 2003 at 11:41:26 Pacific
|
Reply: (edit)Hi, More specificly, the .sed script is to do some output format before printing them which are copied to /tmp, the following are more details: cd $REPORTS for i in `/bin/ls -ltr "CNF"* |/bin/nawk '{ print $9 }' ` do cat /usr/local/bin/abc.sed $i > /tmp/$i cd /tmp case $printer in ""|printer1 ) echo "${bold}Requesting $i on printer1. ${offbold}" /usr/local/bin/lpr -P printer1 -l postscript $i;; printer2 ) ..... esac rm -f /tmp/$i 2>&- echo "Press Return to continue\c" && read ans &&return done And in abc.sed I only find two lines using command more, :::::::: (ECONF2) run ECONF2 can you follow it and figure it out? thanks!
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: