File:  [CSRG BSD Unix] / 43BSDTahoe / usr.lib / learn / C / L5.1f
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

#print
(Section 1.5)
Write a program to replace each tab by the
three-character sequence >, backspace, -,
which prints as >-.  The program should also replace
each backspace by the sequence <, backspace, -.
Compile it, test it, then type ready.
#once #create Ref
This contain s a back space and a	tab.
#once #create Ref1
This contain <-s a back <-space and a>-tab.
#user
a.out <Ref >test
#cmp test Ref1
#log
#next
5.1g 10

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.