Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


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

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

Path csiph.com!aioe.org!.POSTED!not-for-mail
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 Thu, 4 Oct 2018 01:44:19 +0200
Organization Aioe.org NNTP Server
Lines 17
Message-ID <pp3kl0$u0d$1@gioia.aioe.org> (permalink)
References <pp2ltd$1908$1@gioia.aioe.org> <pp2vbl$a30$1@dont-email.me>
Reply-To "Zangune" <Zangune@Users.SourceForge.Net>
NNTP-Posting-Host sTtZ1UIg/NXk8aO3UtBd6Q.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="Windows-1252"; reply-type=original
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
X-MSMail-Priority Normal
X-Newsreader Microsoft Outlook Express 6.00.2900.5931
X-Notice Filtered by postfilter v. 0.8.3
X-Priority 3
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.7246
Xref csiph.com alt.comp.lang.shell.unix.bourne-bash:238

Show key headers only | 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