Quantcast
Channel: Active questions tagged expect - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 157

sed error on expect script

$
0
0

I am trying to use a simple sed command inside with a expect script

spawn sed -n '/0032ff00/,/clogoff/p' /tmp/file.tmp > /tmp/file.tmp1

I get an error:

sed: -e expression #1, char 1: unknown command: `''

I also tried with replacing the '' with {}

spawn sed -n {/0032ff00/,/clogoff/p} /tmp/file.tmp > /tmp/file.tmp1

Then I get:

sed: can't read >: No such file or directorysed: can't read /tmp/file.tmp1: No such file or directory

Viewing all articles
Browse latest Browse all 157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>