1.

Solve : sed -f sed.cmd rpt.tmp > rpt.tmp2?

Answer»

how can i execute this command in a script?

this is what i executed manually via cmd prompt.
(server)user:/home/user/scripts>sed -e '/^ *$/d' \
> -e '/ SU /d' \
> -e '/Job Name/d' \
> -e '/______/d' rpt.tmp > rpt.tmp2

I tried doing the same inside a script but it does not WORK.

What i did is that i put all the sed commands inside a FILE sed.cmd and executed

sed -f sed.cmd rpt.tmp > rpt.tmp2

I DONT want to have another file just for to have the sed.cmd. is there a way that that can be accomplised inside a script without NEEDING for the sed.cmd file?





Discussion

No Comment Found