Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!aramis.rutgers.edu!paul.rutgers.edu!jac From: jac@paul.rutgers.edu (Jonathan A. Chandross) Newsgroups: comp.sources.wanted Subject: Re: expand (tab to space) Message-ID: Date: 27 Jul 90 00:59:13 GMT References: <34529@ut-emx.UUCP> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 18 ycy@walt.cc.utexas.edu (Joseph Yip) > Does anyone know where to get a copy of expand that expands tabs to > spaces? > expand -4 proj.c > projj.c > expands all tabs into 4 spaces. The man page for expand under SunOS claims it will expand to any tabstop you want. Alternatively, you can use sed: sed 's/^T/ /g' where ^T is a tab and the " " is 4 spaces. Jonathan A. Chandross Internet: jac@paul.rutgers.edu UUCP: rutgers!paul.rutgers.edu!jac