Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

System restarting, wait...


computers / alt.os.linux.mint / Re: Non-Printing characters

SubjectAuthor
* Non-Printing characterspinnerite
+- Re: Non-Printing charactersPaul
+* Re: Non-Printing charactersMonsieur
|`- Re: Non-Printing charactersPaul
+* Re: Non-Printing charactersBig Al
|`- Re: Non-Printing charactersBig Al
`- Re: Non-Printing characterspinnerite

1
Non-Printing characters

<20230304185453.740ecd29c28a3e30888483bc@gmail.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5587&group=alt.os.linux.mint#5587

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: pinner...@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: Non-Printing characters
Date: Sat, 4 Mar 2023 18:54:53 +0000
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <20230304185453.740ecd29c28a3e30888483bc@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="2507821f932e1f717bc2f173e176feab";
logging-data="1108077"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MukLpjCag6DVQPGrAbNvXfbvjbwODX+M="
Cancel-Lock: sha1:Wmoj3uRioIG5PKEBXycD4DbssKM=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
 by: pinnerite - Sat, 4 Mar 2023 18:54 UTC

I just installed tree and ran it from my home directory with:

$ sudo tree -d --prune -o mytree.txt

It produced a report but every row contained two non-printing characters.
I would like to replace them with spaces, preferrably using something like libreoffice.

Can it be done?

TIA

--
Mint 20.3, kernel 5.4.0-139-generic, Cinnamon 5.2.7
running on an AMD Phenom II X4 Black edition processor with 16GB of DRAM.

Re: Non-Printing characters

<tu0ajc$12ehk$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5588&group=alt.os.linux.mint#5588

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: Non-Printing characters
Date: Sat, 4 Mar 2023 15:44:26 -0500
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <tu0ajc$12ehk$1@dont-email.me>
References: <20230304185453.740ecd29c28a3e30888483bc@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 4 Mar 2023 20:44:28 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="d7b51d6c18733dba2b6654d6046a03d1";
logging-data="1129012"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dDHMzMG8twpSpKMZi7HdYejaUkWKfIIk="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:PwK7HzR10oFz0DNogBm1tM7Xk+8=
In-Reply-To: <20230304185453.740ecd29c28a3e30888483bc@gmail.com>
Content-Language: en-US
 by: Paul - Sat, 4 Mar 2023 20:44 UTC

On 3/4/2023 1:54 PM, pinnerite wrote:
> I just installed tree and ran it from my home directory with:
>
> $ sudo tree -d --prune -o mytree.txt
>
> It produced a report but every row contained two non-printing characters.
> I would like to replace them with spaces, preferrably using something like libreoffice.
>
> Can it be done?
>
> TIA

I converted to HTML instead of "text with embedded graphics commands".

*******

sudo tree -H . -d --prune -o mytree.htm

Then, pull that into LibreOffice Writer, and use that as a converter.

Optionally, use an HTM to PDF converter.

The graphics emulation in the terminal output, is not
easily translated to a vanilla text file. Converting the
output then, is going to have issues no matter how you
do it.

# Includes HTML links in PDF file, which when clicked
# could do stuff.

sudo tree -H . -d --prune -o mytree.htm

wkhtmltopdf mytree.htm mytree.pdf

[Picture]

https://i.postimg.cc/vBdxwJQB/mytree-PDF-in-Reader.gif

# Easier on the eyes

sudo tree -d --prune | aha > mytree-aha.htm
wkhtmltopdf mytree-aha.htm mytree-aha.pdf

# A bit ugly

sudo tree -d -C --prune | aha > mytree-aha.htm
wkhtmltopdf mytree-aha.htm mytree-aha.pdf

*******

You don't need to use tree views.

find /home/alan -type d -exec ls -al -1 -d {} + > directories.txt
find /home/alan -type f -exec ls -al -1 {} + > filelist.txt

Paul

Re: Non-Printing characters

<tu0b5m$1ju5m$1@solani.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5589&group=alt.os.linux.mint#5589

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Monsi...@notreal.invalid (Monsieur)
Newsgroups: alt.os.linux.mint
Subject: Re: Non-Printing characters
Date: Sat, 4 Mar 2023 21:54:14 +0100
Message-ID: <tu0b5m$1ju5m$1@solani.org>
References: <20230304185453.740ecd29c28a3e30888483bc@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 4 Mar 2023 20:54:14 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1702070"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Firefox/68.0 SeaMonkey/2.53.14
Cancel-Lock: sha1:WGf66hNBL5GrvWYUEtR6a8/9OBY=
In-Reply-To: <20230304185453.740ecd29c28a3e30888483bc@gmail.com>
X-User-ID: eJwNwYkBwCAIA8CVCuGRcVTI/iPYO0dI3LTwMKeTqVNS56PsKlDbfuW6VhtNj7LHEsCei44HEqoQ4g==
 by: Monsieur - Sat, 4 Mar 2023 20:54 UTC

pinnerite wrote:
> I just installed tree and ran it from my home directory with:
>
> $ sudo tree -d --prune -o mytree.txt
>
> It produced a report but every row contained two non-printing characters.
> I would like to replace them with spaces, preferrably using something like libreoffice.
>
> Can it be done?
>
> TIA

In Libreoffice Writer, just select the unwanted characters in the text
and press ctrl-H to open the Find & Replace window. The characters that
you selected are already in the Find field, so all you have to do is
type a space in the Replace With field and select Replace All.

Re: Non-Printing characters

<tu0gud$13228$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5590&group=alt.os.linux.mint#5590

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: Non-Printing characters
Date: Sat, 4 Mar 2023 17:32:45 -0500
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <tu0gud$13228$1@dont-email.me>
References: <20230304185453.740ecd29c28a3e30888483bc@gmail.com>
<tu0b5m$1ju5m$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 4 Mar 2023 22:32:45 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="d7b51d6c18733dba2b6654d6046a03d1";
logging-data="1149000"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/aljN47DblfLvuxiWyunk0M1mFFLcGHCc="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:nO0AaUg3je1D4WaNIQOhZPthDeU=
In-Reply-To: <tu0b5m$1ju5m$1@solani.org>
Content-Language: en-US
 by: Paul - Sat, 4 Mar 2023 22:32 UTC

On 3/4/2023 3:54 PM, Monsieur wrote:
> pinnerite wrote:
>> I just installed tree and ran it from my home directory with:
>>
>> $ sudo tree -d --prune -o mytree.txt
>>
>> It produced a report but every row contained two non-printing characters.
>> I would like to replace them with spaces, preferrably using something like libreoffice.
>>
>> Can it be done?
>>
>> TIA
>
> In Libreoffice Writer, just select the unwanted characters in the text and press ctrl-H to open the Find & Replace window. The characters that you selected are already in the Find field, so all you have to do is type a space in the Replace With field and select Replace All.

If you look with a hex editor, there is more than that to clean up.

Paul

Re: Non-Printing characters

<tu26mc$1b7ud$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5595&group=alt.os.linux.mint#5595

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Bea...@invalid.com (Big Al)
Newsgroups: alt.os.linux.mint
Subject: Re: Non-Printing characters
Date: Sun, 5 Mar 2023 08:50:03 -0500
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <tu26mc$1b7ud$1@dont-email.me>
References: <20230304185453.740ecd29c28a3e30888483bc@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 5 Mar 2023 13:50:04 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="dc18d6929a5f241c0ea580f67ca444b2";
logging-data="1417165"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18E8TT6VeV8qmeIASEjPJ3Xc00i7TTjj3Q="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.7.1
Cancel-Lock: sha1:/Zjp7oeq8nLiWV5lk0/J5wu3rQo=
In-Reply-To: <20230304185453.740ecd29c28a3e30888483bc@gmail.com>
Content-Language: en-US
 by: Big Al - Sun, 5 Mar 2023 13:50 UTC

On 3/4/23 13:54, this is what pinnerite wrote:
> tree -d --prune -o mytree.txt
I get things like
   └── stores
which are color commands You don't see it here by on the screen it's ESC[01;33m which is a color command for orange.
Geany would let you search and replace these codes.
--
Al

Re: Non-Printing characters

<tu2744$1b7uc$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5596&group=alt.os.linux.mint#5596

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Bea...@invalid.com (Big Al)
Newsgroups: alt.os.linux.mint
Subject: Re: Non-Printing characters
Date: Sun, 5 Mar 2023 08:57:24 -0500
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <tu2744$1b7uc$1@dont-email.me>
References: <20230304185453.740ecd29c28a3e30888483bc@gmail.com>
<tu26mc$1b7ud$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 5 Mar 2023 13:57:24 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="dc18d6929a5f241c0ea580f67ca444b2";
logging-data="1417164"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187XsmzOXmm69LMAAc4Ae3+DvWGAk+LXlc="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.7.1
Cancel-Lock: sha1:OKelH1zEFP2KakGuSeOcJc9A/Xs=
Content-Language: en-US
In-Reply-To: <tu26mc$1b7ud$1@dont-email.me>
 by: Big Al - Sun, 5 Mar 2023 13:57 UTC

On 3/5/23 08:50, this is what Big Al wrote:
> On 3/4/23 13:54, this is what pinnerite wrote:
>> tree -d --prune -o mytree.txt
> I get things like
>    └── stores
> which are color commands  You don't see it here by on the screen it's ESC[01;33m which is a color command for orange.
> Geany would let you search and replace these codes.
I've also got the nemo add on action called 'print tree'. It prints to html and displays a web page. You can copy all
in the web page and have no special characters showing.
I just did my downloads folder
/home/alan/Downloads
└── [4.1k] fonts-html scripts
├── [5.7k] fonts-sans.html
├── [ 489] fonts
└── [ 344] font-sans.sh
However it doesn't do the -d and drop all the files. But you could edit the print tree action and make it do that for
you.
Google nemo actions. It's probably on github.
--
Al

Re: Non-Printing characters

<tu27sr$1bq8u$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5598&group=alt.os.linux.mint#5598

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: pinner...@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: Re: Non-Printing characters
Date: Sun, 5 Mar 2023 14:10:35 +0000
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <tu27sr$1bq8u$1@dont-email.me>
References: <20230304185453.740ecd29c28a3e30888483bc@gmail.com>
Reply-To: pinnerite@gmail.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 5 Mar 2023 14:10:36 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="628c836f0a93198316e8a41113dc8a65";
logging-data="1435934"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+mSy2xvUdeTJtZuQIy30T3yj/rQSJ+qIU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.7.1
Cancel-Lock: sha1:/WxfpCKq8K3YgYKUDykRnDqlOvw=
Content-Language: en-GB
In-Reply-To: <20230304185453.740ecd29c28a3e30888483bc@gmail.com>
 by: pinnerite - Sun, 5 Mar 2023 14:10 UTC

On 04/03/2023 18:54, pinnerite wrote:
> I just installed tree and ran it from my home directory with:
>
> $ sudo tree -d --prune -o mytree.txt
>
> It produced a report but every row contained two non-printing characters.
> I would like to replace them with spaces, preferrably using something like libreoffice.
>
> Can it be done?
>
> TIA
>
>
>
>

I didn't expect so many brilliant replies.

Thank you, Alan

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor