Is there a unix equivalent to :beginfile and :endfile
For example, I am doing some editing with qedit. I want everything that is output from the qedit program to end up in a file. We are using HPUX (and this script would be run inside of a batch script and not manually) so it would look something like this:
beginfile SCRIPT
LIVE $ + qedit
qux/TEXT TEST
'Language' is now DATA
6 lines in file
qux/D 1/4
1 _444
2 _555
3 _555
4 _666
4 lines Deleted!
qux/KEEP
/var/summit/spectrum/LIVE/FI/DATA/TEST #Records = 6
Purge existing file [no]? Y
Existing file Purged!
Keep /var/summit/spectrum/LIVE/FI/DATA/TEST
2 lines saved
qux/EXIT
endfile
Therefore, the file SCRIPT would contain
LIVE $ + qedit
qux/TEXT TEST
'Language' is now DATA
6 lines in file
qux/D 1/4
1 _444
2 _555
3 _555
4 _666
4 lines Deleted!
qux/KEEP
/var/summit/spectrum/LIVE/FI/DATA/TEST #Records = 6
Purge existing file [no]? Y
Existing file Purged!
Keep /var/summit/spectrum/LIVE/FI/DATA/TEST
2 lines saved
qux/EXIT
For example, I am doing some editing with qedit. I want everything that is output from the qedit program to end up in a file. We are using HPUX (and this script would be run inside of a batch script and not manually) so it would look something like this:
beginfile SCRIPT
LIVE $ + qedit
qux/TEXT TEST
'Language' is now DATA
6 lines in file
qux/D 1/4
1 _444
2 _555
3 _555
4 _666
4 lines Deleted!
qux/KEEP
/var/summit/spectrum/LIVE/FI/DATA/TEST #Records = 6
Purge existing file [no]? Y
Existing file Purged!
Keep /var/summit/spectrum/LIVE/FI/DATA/TEST
2 lines saved
qux/EXIT
endfile
Therefore, the file SCRIPT would contain
LIVE $ + qedit
qux/TEXT TEST
'Language' is now DATA
6 lines in file
qux/D 1/4
1 _444
2 _555
3 _555
4 _666
4 lines Deleted!
qux/KEEP
/var/summit/spectrum/LIVE/FI/DATA/TEST #Records = 6
Purge existing file [no]? Y
Existing file Purged!
Keep /var/summit/spectrum/LIVE/FI/DATA/TEST
2 lines saved
qux/EXIT