This question already has an answer here:

I would like to be able to generate a large number of digits (for example, the first one million decimal digits of the Napier constant) and then save the number in a text file without any line breaks.

I cannot seem to be able to do this in either GEdit or LibreOffice Writer though. I use Maxima on Terminal to generate the numbers, but they are outputted with line breaks.

I either need to find a way to generate the numbers without line breaks, or find a text editor that can handle removing the line breaks from large numbers containing millions of digits (I can remove the line breaks from numbers containing thousands of digits without any problems).

I use the Terminal syntax below to generate the first one million decimal digits of the Napier constant, and then copy and paste the digits into a text editor (removing \\ and \n).

```
sudo apt-get install wxmaxima
maxima
bfloat(%e),fpprec:1000000;
```

What happens when I attempt to copy and paste into GEdit and then remove the line breaks, is I can get the digits all on one line, but the digits will not display. Since GEdit can successfully remove the line breaks from and display 1000 digits but not one million digits, I am wondering if it might be a memory issue. However, when I attempt to save the file as TXT and then open it in LibreOffice instead, it still contains line breaks. LibreOffice cannot seem to remove the line breaks at all, even when I copy and paste directly from Terminal.

I should add maybe that I am not on Canonical Ubuntu, but the fork known as Mint :-/ .