|
From: | Bruce Ingalls |
Subject: | Re: expand tabs in a shell |
Date: | Tue, 17 Feb 2004 13:20:01 GMT |
User-agent: | Mozilla Thunderbird 0.5 (Windows/20040207) |
David Rasmussen wrote:
Joakim Hove wrote:how about redirection: expand file > tmp_file ; mv tmp_file fileSure, but that doesn't solve the problem with batch runs. I can't do expand *.cpp which would have been very easy.
#!/bin/zsh #or choose a sufficiently powerful shell, such as bash for file in *.cpp do expand $file > tmp_file mv tmp_file $file done #See also nntp://comp.unix.shell
[Prev in Thread] | Current Thread | [Next in Thread] |