home *** CD-ROM | disk | FTP | other *** search
- %W% /bin/sh -ie
- mkdir /tmp/$$ tmp
- %% 1 edit
- ./keyb edscr1.dat | ed edit.dat
- : .......................................................
- : . This is some filler of about the same .
- : . size as the file edscr1.dat, since the .
- : . emulated input proceeds in parallel, and .
- : . we want the real-time delay to be about right .
- : .......................................................
- chmod u+w temporary
- rm temporary
- %% 2 ls
- ls -l
- %% 3 cat
- cat cat.dat
- %% 4 compile
- cc -c cctest.c 1>&2
- rm *.o
- %% 5 edit, compile and link
- chmod 444 dummy.c
- ./keyb edscr2.dat | ed dummy.c
- : . more textual and time filler for the second edscript file, edscr2.dat .
- cc dummy.c 1>&2
- rm a.* grunt.c
- %% 6 grep
- grep '[ ]*nwork' grep.dat
- %% 7 file copying
- cp *.c edit.dat /tmp/$$
- cp /tmp/$$/* tmp
- %%
- rm -rf tmp /tmp/$$
-