Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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 ECONF2what's that? Can somebody explain it to me, thanks!

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.

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
doneAnd in abc.sed I only find two lines using command more,
::::::::
(ECONF2) run ECONF2can you follow it and figure it out? thanks!

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |