Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > alt.comp.lang.shell.unix.bourne-bash > #238

Re: tr squeeze repeats does not remove multiple spaces coming from a piped du command

From "Zangune" <Zangune@Example.Com>
Newsgroups alt.comp.lang.shell.unix.bourne-bash
Subject Re: tr squeeze repeats does not remove multiple spaces coming from a piped du command
Date 2018-10-04 01:44 +0200
Organization Aioe.org NNTP Server
Message-ID <pp3kl0$u0d$1@gioia.aioe.org> (permalink)
References <pp2ltd$1908$1@gioia.aioe.org> <pp2vbl$a30$1@dont-email.me>

Show all headers | View raw


"Michael F. Stemper" wrote

> du -c dtd | sed 's/\t/tab/g'
> 84tabdtd
> 84tabtotal

Thanks, I can confirm that a sed substitution shows me that there is a 
single "tab" between the last number and the "total" word.
Indeed, if I leftclick on a terminal just after the last number and I 
highlight what I can find between the numbers and the "total" word, the 
highlight "trace" shows me four spaces; more than this, the highlighted 
characters are automatically copied and, when pasted, they appear as 
four spaces. That fooled me, but I guess this behaviour of the program I 
use for terminal emulation is intentional, I have to investigate about 
that.
Regards. 

Back to alt.comp.lang.shell.unix.bourne-bash | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

tr squeeze repeats does not remove multiple spaces coming from a piped du command "Zangune" <Zangune@Example.Com> - 2018-10-03 17:05 +0200
  Re: tr squeeze repeats does not remove multiple spaces coming from a piped du command "Michael F. Stemper" <michael.stemper@gmail.com> - 2018-10-03 12:47 -0500
    Re: tr squeeze repeats does not remove multiple spaces coming from a piped du command "Zangune" <Zangune@Example.Com> - 2018-10-04 01:44 +0200
  Re: tr squeeze repeats does not remove multiple spaces coming from a piped du command Grant Taylor <gtaylor@tnetconsulting.net> - 2018-10-03 11:49 -0600
    Re: tr squeeze repeats does not remove multiple spaces coming from a piped du command "Zangune" <Zangune@Example.Com> - 2018-10-04 01:54 +0200
      Re: tr squeeze repeats does not remove multiple spaces coming from a piped du command Grant Taylor <gtaylor@tnetconsulting.net> - 2018-10-03 22:48 -0600

csiph-web