[Samba] Re: removing overstrikes
Joel at HammersHome.com
Sun Jan 26 16:34:01 GMT 2003
Your mistake in in your sed script.
The sed script should only have the command you want to run.
Your script should only have one line in the file in this example.
On Sun, Jan 26, 2003 at 12:59:19PM -0000, richardkoliver <rko15 at attbi.com> wrote:
> If I type (bash shell, where the backspace character is entered by
> typing ctrl-v ctrl-h)
> man modules.conf | sed 's/.^H//g' > out
> the .^H combinations (which produce underlining and boldfacing in the
> terminal output) are perfectly removed as desired, i.e. the file 'out'
> is as it should be with no extra characters.
> But if I create the script-file f1.sed:
> #!/bin/sed -f
> and type
> man modules.conf | sed -f f1.sed > out1
> the input is unchanged, i.e. 'out1' is same as the manual page for
> And if I change \x08 to \b, the result is again unsatisfactory.
> Question: How do remove the extra characters with a script-file as I
> have tried to do with f1.sed? And in general, how does one insert
> unprintable characters into a sed script-file?
> The version of sed is 3.02-14mdk which came with my Linux Mandrake
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the samba