Questions tagged [text]
text intended for human readers, generally consisting of sentences in a human language organized in paragraphs
364 questions
0
votes
1
answer
62
views
remove diacritics in Polish characters [duplicate]
I have a downloaded ebook on my PC that's in Polish, problem is my mp3 that can also display ebooks doesn't have Polish characters so I need a way to edit all the ł, ń, ą, ó etc. into l, n, a, o etc.
...
0
votes
2
answers
215
views
POSIX definition of a text file seems to accept a file consisting of a single incomplete line as a text file - is this intentional? [closed]
POSIX defines a text file as "a file that contains characters organized into zero or more lines". However, according to POSIX definition of a line, there are two possible "kinds" ...
0
votes
1
answer
55
views
view a bunch of text files in the terminal [duplicate]
I've got a bunch of text files and pdfs in a directory.
If I enter
evince *.pdf
..all the pdfs open up in separate windows, I do this quite often.
When I enter
cat *.txt
..was pleasantly surprised ...
1
vote
2
answers
276
views
Reformat text to exact width [duplicate]
On Ubuntu, how to reformat text to fit width (except final line), adding spaces where necessary? The closest I can get is with fmt --width=64, but this does not add the spaces between words.
Input
...
2
votes
2
answers
2k
views
export/convert emails (.eml files) to plain text
So I have an ancient archive of emails and I want to combine them into one big happy text file, can that be done? I notice when I view an email and cut and paste the content I get exactly what I want ...
1
vote
0
answers
789
views
Copy all text in a tmux pane?
How can I copy all the text in a tmux pane?
Pressing Ctrl + b and ] I can select a portion of text, but it is cumbersome to scroll all the way to the top in a long pane.
Is there an easier way to ...
0
votes
1
answer
136
views
How to do replace with the dte editor
The dte editor a small and easy to use console text editor.
In readme or its online doc, both says:
Regex search and replace
(are the key features). However, I haven't found how to do the replace ...
1
vote
0
answers
50
views
Debian terminal not displaying correct Unicode half-block characters [duplicate]
I have a program that prints Unicode half-block characters (U+2580, U+2584), but on Debian 10 terminals (just the fullscreen terminal, no X), it's printing diamonds instead of half-blocks.
The two ...
1
vote
0
answers
70
views
Why find and replace using cscope is producing tcache2 error?
I am trying to change a given string in a large project to another string using cscope [Change this text string:]. When it prompts to select the instances, I press ctrl + a to select all and then ctrl ...
0
votes
1
answer
1k
views
How to send systemd logs to a text file
I want to know how to send systemd logs to a text file.
There are many reasons for this, such as:
Being able to use grep without having to use journalctl first
Being accustomed to it
Why not use it
...
1
vote
3
answers
345
views
Remove lines matching pattern, plus any lines following it matching a different pattern
Let me preface I am not sure if this question has been asked before, I have been Googling for answers but came up short.
I want to use standard Linux/Unix commands (running this on FreeBSD) to exclude ...
0
votes
1
answer
777
views
Terminal is losing the blink and is not showing text after using (batcat)
So, I used batcat to syntax highlight a file in the terminal. After I close it through Ctrl + C, my cursor stops blinking and I cant see the text I type in my terminal.
Error
1
vote
2
answers
227
views
Command to gather all specified text files, rename them, and copy them to a folder
I have thousands of text files called file.txt. Because they all share the same name I cannot move them to the same folder without them overwriting.
I need a command that will locate all of the file....
0
votes
1
answer
1k
views
Write directories, subdirectories and file names to .txt file
I am looking for a command that will write the names of all directories, subdirectories and file names to a text file.
Example format:
directory1
|_subdirectory1
| |_filename1.mp4
|_subdirectory2
| |...
1
vote
0
answers
171
views
All text Arabic in my browsers turned to be very small and thin - Ubuntu 22.04
Arabic font was nice when installed Ubuntu 22.04, like it was the default one, but today it turned to the one below
You can see the difference between English and Arabic in smoothing
==================...
0
votes
1
answer
431
views
Find strings containing English words in a text file
Here's a sample input:
PAMA
Pamc
PaML
Panel00
PanelBrightnessLimits
PanelBrightnessParamsX
PanelPWMDutyRange
PanelPWMFrequency
I want to get:
Panel00
PanelBrightnessLimits
PanelBrightnessParamsX
...
0
votes
1
answer
2k
views
What types of files can 'Generic Text Only Printer's print?
Today I added a printer on linux and tried to print an excel file. Clicked print but no reaction from printer. When I went to printer menu to troubleshoot I noticed that my printer's description was ...
0
votes
1
answer
1k
views
How to create a text file for each files found in a directory?
I'm new to unix and I'm having a hard time doing this loop.
I have a directory with a list of files and I'm able to list all of those files in a text file.
I have a text file that contains the ...
0
votes
1
answer
332
views
GNU GRUB - Is there any negative in using a grub text-only mode to boot into Ubuntu/Mint?
Is "text" (GRUB_GFXPAYLOAD_LINUX=text) an acceptable long-term grub setting? Can it be presumed that the "GUI" (Mint Cinnamon X server etc) will faithfully take over to normal ...
0
votes
3
answers
624
views
How to remove lines from TSV file where columns are empty or all whitespace?
I've a tab-delimited file, e.g. myfile.tsv:
abc\tfoo
xyz\tbar
but sometimes, it has some blank columns, e.g.
abc\tfoo
xyz\tbar
what\t
\tthe
bleep\tsleep
i.e.
$ printf "abc\tfoo\n" > ...
0
votes
2
answers
305
views
insert block of lines only before first matched pattern
i need to insert the below lines (after variable substitution) before the first matched string which is server { in /etc/nginx/nginx.conf
Variable:
website=www.hello.com
Block of lines:
server {
# ...
2
votes
4
answers
997
views
How can I match text at the beginning of a line and print the X previous lines along with the matched one?
I found a similar question here, but it is not exactly what I want.
Let's suppose I have a text file like this:
[...]
age: 10
country: United States
city: New York
name: John
age: 27
country: Canada
...
3
votes
2
answers
280
views
Indent lines of text following given rule
I was wondering how indenting recursively more and more lines of poetry following a custom rule. For instance
Let say we have:
OF Mans First Disobedience, and the Fruit
Of that Forbidden Tree, whose ...
1
vote
2
answers
141
views
What program is best for outputting an image with my inputted text on it?
I'm looking for a program that is able to output an image with my inputted text on it.
Sort of like a template, I would input varying text / numbers and an image, and the program will output the image ...
0
votes
1
answer
178
views
Replace text in terminal
I am using secure copy to copy some data from a server to a folder (let's say: scp [email protected]:/project1/data/ data1/).
My question is if it is possible to save the address of the server (in the ...