On 10 February 2000, M.-A. Lemburg said: > Is there a command line tool out there to untabify existing > Python scripts ? I recently wanted to apply such a tool to all > my stuff, but couldn't find any suitable Python script for the job... > there are lots of tools to catch those tab/space mixes, so no > finding the cure to the problem kind of surprised me ;-) On Solaris: User Commands expand(1) NAME expand, unexpand - expand TAB characters to SPACE charac- ters, and vice versa SYNOPSIS expand [ -t tablist ] [ file... ] expand [ -tabstop ] [ -tab1,tab2,...,tabn ] [ file... ] unexpand [ -a ] [ -t tablist ] [ file... ] DESCRIPTION expand copies files (or the standard input) to the standard output, with TAB characters expanded to SPACE characters. [...] And on Linux: EXPAND(1) EXPAND(1) NAME expand - convert tabs to spaces SYNOPSIS expand [-tab1[,tab2[,...]]] [-t tab1[,tab2[,...]]] [-i] [--tabs=tab1[,tab2[,...]]] [--initial] [--help] [--ver- sion] [file...] DESCRIPTION [...] This manual page documents the GNU version of expand. expand writes the contents of each given file, or the standard input if none are given or when a file named `-' is given, to the standard output, with tab characters con- verted to the appropriate number of spaces. By default, expand converts all tabs to spaces. [...] I expect the latter, which is of course GNU expand, is available for (maybe part of) Cygwin. I don't think it's written in Python, though. ;-) Greg
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4