[comp.sources.wanted] expand

ycy@walt.cc.utexas.edu (Joseph Yip) (07/27/90)

Hi,

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.

thank you.

- Joseph

jac@paul.rutgers.edu (Jonathan A. Chandross) (07/27/90)

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