Questions tagged [text]

text intended for human readers, generally consisting of sentences in a human language organized in paragraphs

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Geany: Possible to automatically enable/disable line wrap dependent on file type?

In Geany text editor / IDE, is there a way to tell it to automatically enable line wrapping for certain file types, but not for others? For example, for .txt files, I would like it to always enable ...
End Anti-Semitic Hate's user avatar
1 vote
2 answers
117 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 ...
Ray Andrews's user avatar
  • 2,297
1 vote
0 answers
26 views

Is there a way to change text size on a console screen, specifically XAMPP shell console?

I simply just want to be able to display the text at a smaller size as it currently is too large and messes with the display of the output (at least on my laptop screen which isn't all too big, but ...
schoolstudent's user avatar
0 votes
0 answers
112 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 ...
a06e's user avatar
  • 1,707
1 vote
1 answer
1k views

mate-terminal showing unwanted text when it starts

i'am on parrot OS, after a forced restart my mate-terminal begun showing text from bashrc every time it started, after a "clear" it goes away and the prompt is properly colored and ...
Ar Angelina's user avatar
0 votes
1 answer
59 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 ...
xpt's user avatar
  • 1,498
0 votes
0 answers
56 views

How to "fuzzy" match (misspelled) strings in a directory?

I would like to search a directory(tree) with textfiles for strings that are approximately similar to a certain string, similar to this https://en.wikipedia.org/wiki/Approximate_string_matching. I ...
d-b's user avatar
  • 1,891
1 vote
0 answers
38 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 ...
Jason C's user avatar
  • 1,372
0 votes
5 answers
273 views

In bash how to copy an URL within a displayed text file without using the mouse?

Let me take you to this short trip: Open terminal. Type cat <any text file in your current working directory, containing a URL, at the beginning> | head The first 10 lines of that text file are ...
futurewave's user avatar
1 vote
0 answers
24 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 ...
arka's user avatar
  • 253
0 votes
0 answers
393 views

Converting a TXT file to PDF from the command line using a custom font

I want to convert a UTF-8 txt file to PDF for printing with CUPS. The problem I'm facing is that all tools I've tried have either failed to format the PDF (resulting in a fully white document with no ...
psvg200's user avatar
0 votes
1 answer
352 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 ...
Downvoter's user avatar
1 vote
4 answers
128 views

Find text files where the content is duplicated?

By mistake I appended (>>) rather than overwrote (>) the output from a script that processed thousands of files, but I only did it for about 20 % of the files (I ran 5 parallel instances of ...
d-b's user avatar
  • 1,891
1 vote
3 answers
123 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 ...
ekrekeler's user avatar
-1 votes
1 answer
203 views

How to remove characters after specific word using grep command in BBEDIT?

I have these data where I need to remove the extended URL from each website to make it, previously I used ^.+?(?=.com ) to remove the front line of characters. This time I need to remove the words ...
Anna's user avatar
  • 21
0 votes
1 answer
270 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
lunix's user avatar
  • 29
0 votes
1 answer
175 views

Change file name based on contents

I'm trying to rename a set of files based on what is in the file itself. I have likely more than a thousand files to rename by the time I'm done. I have code that will get me the first part of the ...
JoJA's user avatar
  • 1
0 votes
2 answers
154 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....
linuxuser24569's user avatar
0 votes
4 answers
188 views

Concatenating txt files and keeping directory name

I am concatenating thousands of .txt files together but I want to keep the path written above the text of each .txt file so I can refer back to the directory to review files if needed. Example: file1....
linuxuser24569's user avatar
0 votes
1 answer
798 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 | |...
linuxuser24569's user avatar
1 vote
1 answer
30 views

removing duplicates based on one column but not duplicate in another column but want to remove the whole line

I have a text file with so many lines with two columns, but i want to remove the whole line based on duplicate of a column but not duplicated in another column. I have following example of my data ...
anbu arun's user avatar
1 vote
0 answers
107 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 =================...
Heba Allah. Hashim's user avatar
2 votes
1 answer
225 views

What's inside a character device file?

A character device file is a special linux file where you can read from and write to an infinite number of chars and other file operations that you can define inside a kernel device driver. But does ...
ptiza_v_nebe's user avatar
0 votes
1 answer
296 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 ...
Artem S. Tashkinov's user avatar
1 vote
4 answers
230 views

How do I use sed to print only a specific "table" in a text report file? [duplicate]

In a report file generated from Quartus, there are multiple "tables" like the following: +---------------------+ ; Section1 Title ; +---------------------+ Miscellaneous text +---------...
JohnR's user avatar
  • 13
0 votes
1 answer
1k 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 ...
ldc7738's user avatar
1 vote
0 answers
161 views

Text output with colors in xed text editor

I'm executing a nodejs project with roarr library for log messages; when I write the output to a file and open the geretated text file with xed, I have the following codes indicate, I argue, the ...
user1's user avatar
  • 113
0 votes
1 answer
911 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 ...
Philippe Javier's user avatar
0 votes
1 answer
228 views

Output text file contents (/proc/interrupts) as they change [duplicate]

Is there some command I can use to monitor changes in /proc/interrupt? For example, using head -4 I can see that the file is changing, but only if I run head again and again: > head -4 /proc/...
emacs drives me nuts's user avatar
0 votes
1 answer
172 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 ...
revans19's user avatar
  • 101
1 vote
1 answer
91 views

How to separate with a comma in a logfile

I have a log file as below, 011122111128 :16267281288 :40586200370017022 :947700000622 :919400146760221 :SSD :4065376D : :9477000006 :9170120275030 :210 :18 :002919544716189 :unknown :unknown :unknown ...
edublog's user avatar
  • 83
0 votes
3 answers
436 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" > ...
alvas's user avatar
  • 123
0 votes
1 answer
287 views

How can I append a specific text at the end of each line in a file?

I have a file called my_file.txt. Its content is as follows: 7rrmC 7rztC 7s63D 7scfA 7sciA 7seuA 7sh3B 7shgA 7sj9N 7sp5A 7sr2B 7stdC 7sv6A 7sybA 7t2yB 7t30B 7t3bE 7t4rA 7t71A 7t8wD 7tacA 7tbsA 7tfmA ...
user366312's user avatar
0 votes
2 answers
213 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 { # ...
Ashar's user avatar
  • 491
0 votes
1 answer
349 views

How to extract txt files from multple folders and merging all into a single folder?

I have 100 of folder where in each folder I have another folder with same name and inside that folder there is a .txt file which I want to extract and merge all the txt files into a new folder. Please ...
heilo's user avatar
  • 3
2 votes
4 answers
807 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 ...
phantomcraft's user avatar
4 votes
4 answers
681 views

Convert all small words (2-3 characters) to upper case with awk or sed

I need all 2-3 character words completely capitalized. 1 character and 4+ character words need to be remain untouched. Input: cat Example Dog I Fish su Su adm Amd Cat ignore Expected output: CAT ...
xorghelpneed's user avatar
2 votes
2 answers
207 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 ...
Dingo's user avatar
  • 329
0 votes
2 answers
489 views

Extract fields from JSON document embedded in text file

I have the following line of text, and I would need to extract a few of the fields from the JSON part of the line of text. June 27th 1997, 10:11:52.621 {"serviceId":"00034","...
SRash's user avatar
  • 111
1 vote
2 answers
71 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 ...
Liam's user avatar
  • 11
2 votes
2 answers
652 views

replacement for tr with utf-8 capabilities

in order to isolate the last word in any line of a poem (to have a list of all rhymes), I put together several snippets of code obtaining this awk '{print $NF}' input.txt | tr 'A-Z' 'a-z' | tr -sc 'a-...
Dingo's user avatar
  • 329
0 votes
1 answer
141 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 ...
Avles Edivad's user avatar
1 vote
0 answers
65 views

How to find the PHP file which prints an HTML element with a certain selector?

I store my MediaWiki 1.36.1 website with Skin:Timeless on NameCheap with a shared hosting environment with Cpanel file manager and SSH shell access. In my website, there is a certain footer element ...
searcher's user avatar
-3 votes
1 answer
617 views

How to copy text from text editor to tty command line

Using debian 11 GNU/linux bullseye without mouse, only keyboard. The problem: I have a file with a password, very long and complicated. I need to copy it and paste when I login via ssh. I tried to ...
Ehrmantraut's user avatar
0 votes
1 answer
128 views

How to replace text in file - conditions and arithmetic required

I need a script to change content in some text files. This a bit beyond my limited bash skills. Maybe perl or python would be a better approach, I have no experience with either of these. I have a ...
jamitin's user avatar
0 votes
1 answer
1k views

Create multiple file from single txt file

I have a single input file that needs to be replicated multiple times with a little change in every file i.e every 30th line in every file is to change. For e.g. My main text file name is D0.txt which ...
Yash54's user avatar
  • 19
0 votes
1 answer
88 views

Add value to a string

I have a large bash file that has a lot of lines like this: ... --env COMP_LABELS="service:service1" ... Where service1 differs in every line. (sometimes it's service:mgmt or service:admin)....
jessefournier's user avatar
0 votes
2 answers
418 views

Append the name of each text file to the last line of the file [closed]

I have ten files: firstFile.txt,...,tenthFile.txt On the last line of the file I would like to append the name of the file. i.e. for the first one the last line would be "firstFile" I would ...
kedoink's user avatar
3 votes
3 answers
703 views

How to sort a file contents after n lines?

In linux we can run sort command to sort file contents, but in my case I have the following file (THANKS.txt): These people have contributed to OSN Envoy. We always try to keep this list updated and ...
Ar Rakin's user avatar
  • 189
2 votes
5 answers
2k views

grep multiple lines from a text file

Does anybody know how to grep multiple lines from a text file? I googled many results, but still not fully working. Text file example: x x x --- start a b c d --- x x x And I want to get only this ...
Nicco's user avatar
  • 55

1
2 3 4 5
8