```
#!/usr/bin/expect
spawn bash -c "
expect {
-re "PATTERN\n" {
puts "$expect_out(1,string)"
exp_continue
}
}
```
Not sure this still works.
```
#!/usr/bin/expect
spawn bash -c "
expect {
-re "PATTERN\n" {
puts "$expect_out(1,string)"
exp_continue
}
}
```
Not sure this still works.
$ cat a.tail
#!/usr/bin/tail -1
hello world
$ ./a.tail
hello world
$
But it’s wasteful because it uses an entire byte to represent just one letter.
$ cat a.tail
#!/usr/bin/tail -1
hello world
$ ./a.tail
hello world
$
But it’s wasteful because it uses an entire byte to represent just one letter.