Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [text]

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

0
votes
3answers
35 views

extract specific words and its data from html/xml file

sample input is <bre rt="1600" et="1550794901464" st="1550794899864" tid="8390500116294391399" mh="N" cn="" lc="" ts="N/A" cidc="" IDC="" eidc="BRE-S-TRA-0085418501"/> <r1> &...
-1
votes
0answers
22 views

Unable to use register to copy from vim [duplicate]

I am currently trying to find a way to copy text from visual mode in vim using "+y so that I can paste it into R-Studio using Ctrl-V. I have read that there are different registers that are used since ...
0
votes
0answers
14 views

extract specific words and its data from file

I have a html file with 70+ gb data contain data like below. here is the sample data. We are not sure the trxn field may come or not, how many times it may appear in a record. If it came in record ...
-1
votes
0answers
33 views

FreeBSD not displaying text correctly after fresh installation

I installed a fresh copy of FreeBSD for my computer to try it out, because I liked it in a VM. But when I boot into my new installation, I can see the boot loader, but when I choose anything after ...
2
votes
0answers
17 views

Dual display setup with Debian 9 text interface [closed]

I have a NCR EPoS terminal that has a dvi interface for the main screen and a vga for the secondary screen. Is it possible to have one application running in full screen on the dvi display and one ...
0
votes
1answer
31 views

Export text file by some terms

I have in.txt file with over 10000 line, some text in this file between bract like ( this text ) and the text out the bract not export, i want to export all text between ( ) to out.txt, but provided ...
1
vote
2answers
65 views

How can I read out a text file?

I want to convert text in file a.txt to sound & play it using APLAY. any suggestions please?
-1
votes
1answer
25 views

Grab last youtube video index and re-download .description

after I had download youtube videos with youtube-dl -cit -f 140 ' , I forget to download the .description as well... so I have bunch of files without description, I want to redownload the description ...
0
votes
0answers
39 views

Change text color in PDF files

I want to change some Text-Coloring by regex search in one or more PDFs. for example i want to change the color of all appearances of "A[0-9]+.[0-9]" like A120.1, A600.0 and so on. is it even possible ...
0
votes
0answers
31 views

Why are trailing line breaks stripped when used as an argument (for echo)? [duplicate]

When I run this… echo " fdsfsd dsfsdf " I really get the output of all these lines. However, if I use this output as an argument for echo again…: echo "$(echo " fdsfsd dsfsdf ")" …...
0
votes
0answers
95 views

How to open windows txt with cyrillic text?

How to open Windows text file that have Cyrillic text ? If I open with mousepad there is understandable text. If I type file -bi test.txt text/plain; charset=iso-8859-1
1
vote
2answers
56 views

navigating forward in more pager using f

It is given in the man page of more that f is used to skip forward k screenful of text(default to 1).I saved a very long file using cat and used more to show it on the screen page by page but when i ...
1
vote
1answer
46 views

Stream text into a file while compressing it

I have an Arduino Nano connected to a Raspberry Pi which streams text data (the output of a GY-91 sensor) to a listener on the Raspberry Pi. P: 974.044 | T: 22.65 | AG: -0.17 -0.10 1.01 | GD: 1....
0
votes
0answers
157 views

nano line numbers in nanorc by default

"set linenumber" doesn't seem to be working. GNU nano version 2.5.3. LinuxMint 18.02 (old because my Ubuntus -- 17.04 and 18.04 -- are broken.) Is there another way to do it?
9
votes
3answers
632 views

Existing command line text on screen to file? (non-graphical Linux)

On tty2, how do I take a text screenshot of the command line?
0
votes
1answer
50 views

detecting unique lines from log file

I have a large log file and would like to detect the patterns instead of specific lines. for example: /path/messages-20181116:11/15/2018 14:23:05.159|worker001|clusterm|I|userx deleted job 5018 /...
-1
votes
1answer
32 views

searching and deleting duplicate text

I have text file in which I want to search for duplicate occurrences of New Cell lines New Cell New Cell 3250,36, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...
-2
votes
1answer
45 views

How can I scramble a text file table, with a table

I have a table. The column order must not be changed. And the values should be kept. Name Age size Code Abel 10 S A Bjorn 20 M B Casimir 30 L C Dennis 40 XL D I don't just ...
0
votes
1answer
319 views

Get string between two strings

I need to get inner text from this string [%L10n.msg('foo')%] so text between [%L10n.msg(' and ')%] so in this example I should get foo. I found lot of examples but no one of them worked, I tried ...
2
votes
1answer
57 views

Unix text processing

2 text files. I have to find the uniq values from the 2 text files and take the output in 3rd file with the filename along with uniq values. For eg a.txt 1 4 3 b.txt 2 1 7 Output File.out b.txt 2 ...
0
votes
0answers
60 views

How to paste a timestamp (YYYYMMDDHHMMSS) immediately anywhere using hotkey, without reserving the clipboard?

I would like to paste an YYYYMMDDHHMMSS timestamp everywhere with a specified keyboard key or combination. Here is a way to do so: http://www.arcadien.net/node/48 But this reserves the clipboard, ...
1
vote
1answer
29 views

Shell way to get specific text based on condition

Using shell script I am making a db call on database VM and I am getting and storing the query response into a .txt file. Which looks like below: X folder Check: Number of Files on X Outbound 17 Y ...
-1
votes
1answer
257 views

Arch/Tint2/OpenBox Displaying boxes instead of text [closed]

I have a fresh Arch setup with the following installed: xterm openbox tint2 Now after starting tint2, the panel in the lower left-hand corner displays what seems to be a working panel, but with ...
0
votes
2answers
37 views

How to convert “animated” text in a document to static text? [duplicate]

When I analyze the output from Racon, which I got on GitHub, it has dynamic "animated" text as the output from the STDERR. For example, when I cat the file, it looks like this: [racon::Polisher::...
3
votes
1answer
51 views

Is there a portable way to switch text case from the command line?

Is there a way, portable across POSIX operating systems and locale-aware, to switch text case from the command line--that is replacing lower case letters by upper case ones and vice versa. Using GNU ...
0
votes
1answer
241 views

Python script runs as bash command on terminal but not as a cron job

I am trying to run a python script on my Raspberry Pi (Stretch OS) as a cron job but the script fails to run fully. On crontab -e, it reads like this: */1 * * * * python /home/pi/project/myfile.py &...
2
votes
3answers
258 views

Replacing two patterns in a text files at the same time [duplicate]

I have a text file contain numbers as follows: 34 77 1716 150?.2 67.5892 11.9691 23 1?6 83 35 78 0 0 0 0 0 0 0 36 79 0 0 0 0 0 0 0 37 80 0 0 ? ? 0 0 0 38 81 0 0 0 ? 0 0 0 39 82 0 0 0 0 ? 0 ? 40 85 ...
1
vote
1answer
361 views

How to get Fedora 28 text console install under KVM to not prompt about text mode vs VNC

I've been trying to get unattended linux installs (fedora 28 in this case) working under KVM for some time. I've got it mostly worked out but it still asks me if I want to use text mode or fire up VNC....
-2
votes
5answers
92 views

TEXT processing with awk [closed]

I have text like below: select {{112,department}},{{112,client}},{{112,place}} from table where id=1 and {{112,cgid}} and {{113,evid}} I need to write into a file as {{112,department}} {{112,client}...
2
votes
1answer
289 views

Text file being identified as binary

Background I've been using lynx for a couple of years to dump automatically (via cron), process (using awk, sed, and tr), then mail (bsd-mailx) the contents of a web page. It's been working pretty ...
0
votes
0answers
34 views

Convert columns to rows [duplicate]

I want to convert a file that is formatted in columns like this: 1 a 2 b 3 c 4 d and want to get the following: 1 2 3 4 a b c d How can I do this using standard unix tools?
1
vote
2answers
49 views

Compile list of words from list of files

How would one take on this task? I've tried to do it with tr, and come up with this (with help of other similar question): tr -c '[:alnum:]' '[\n*]' < long_concatenated_file but.. Its a bit of a ...
0
votes
0answers
37 views

Wrong filenames timestamp listing in .txt file after comparison with the creation date

This is a part of my previous question about filenames timestamps correction, i wanted to separate it from the other question so that maybe some of the community member will not have a hard time to ...
0
votes
2answers
51 views

copy sections of a big file into many output files

I have one large file that looks like: Header1 Subheader1 l1 l1' l1'' Header2 Subheader2 l2 l2' l2'' Headern Subheader n ln ln' ln'' (in which n is ~25K) I need to paste l1-l1'', l2-...
20
votes
2answers
1k views

What conditions must be met for a file to be a text file as defined by POSIX?

POSIX defines a text file as: A file that contains characters organized into zero or more lines. The lines do not contain NUL characters and none can exceed {LINE_MAX} bytes in length, including ...
1
vote
1answer
41 views

Why is my previous history command in the terminal overwriting other text? [duplicate]

Here is my .bashrc config for ps1 i believe ive done it correctly but any time i press up for a previous command it gets all jumbled up. I can write long lines of commands without it wrapping only the ...
0
votes
0answers
26 views

How to replace a serial of matrixes in a specific file, and output the these files named by different names (with the parameters) in Linux?

This is a complex question, I want to write a workflow or pipeline to draw parameters from priors parameters (M,B,D), then use these three parameters to generate 30 matrixes (20*20). I have written ...
1
vote
2answers
105 views

How to move the files to new directory based on names in text file?

I have tar.gz files like below in a directory df: A.tar.gz B.tar.gz C.tar.gz D.tar.gz E.tar.gz F.tar.gz G.tar.gz I also have text file move.txt with following columns information: ID Status ...
1
vote
4answers
2k views

Find all files containing keywords [duplicate]

I want to locate all text-files within a directory tree containing two words, word1 and word2 (for example). I cannot just grep for word1 word2, because this will only find occurrences where the two ...
1
vote
0answers
29 views

Index and search a directory

I have a directory tree containing many text-files. I would like to index the full-text of all these files (ignoring files with certain file-extensions), so that I can quickly search thorugh all of ...
1
vote
1answer
41 views

How to assign the whole line except several columns to an array index

I operate three similar text files all contain 8 fields and look like: File1: 145794 MEG -0.249553181556742 10.7024481844394 -2.66596894783271 0.00786178413495372 0.0601441357290167 -2....
0
votes
2answers
53 views

How to extract text inside first pair of colons [duplicate]

I have a log file that saves this kind of lines every time a file cannot be extracted from a tar. tar: foto/201802131354184186718718.xml: No se puede efectuar open: File exists tar: foto/...
0
votes
1answer
28 views

Embedded linux to read text and append it to another file [closed]

I have an embedded linux system that has limited commands available. VI being the only text editor I found so far. I can run SH to run a script but again, limited abilities. I need to ftpget a text ...
2
votes
2answers
106 views

Sample out one element from each row of file until k

I am new to UNIX and am trying to learn basic level text processing in UNIX so maybe this question may seem very basic but I would really appreciate any guidance. I have a text file as below A 1 B 2 ...
-3
votes
1answer
62 views

Wanted to know the correct way of using sed command by inserting text from one file to another? [duplicate]

Due to some problems in this site when it comes to displaying. I am using '{' instead of '<'. Here is my sed command: sed 's/{head/*backbutton_and_scroller_script.txt*{head/' report.usc20.txt I ...
2
votes
1answer
1k views

What exactly does Ctrl+Shift+X do in Firefox (Linux)?

On pressing Ctrl+Shift+X in browser text fields, the text changes its alignment to the right, but it is not exactly the same as right align. The symbols do not follow the alignment, they even change ...
1
vote
2answers
141 views

insert a string to a list variables in text file [use sed]

I want to add zsh-autosuggestions plugin to ~/.zshrc by script. original text: plugins=(git) or plugins=(git some1 some2) target : plugins=(git zsh-autosuggestions) This doesn't work. sed ...
0
votes
1answer
48 views

Problem using find with filenames containing spaces [duplicate]

I'm trying to run join a bunch of files using the find command. I have determined that filenames containing spaces are giving me a problem. The following comand works for files that do not contain ...
-2
votes
1answer
103 views

How to find the most popular word in the text in a text file through the linux terminal [duplicate]

How to find the most popular word in a text file through the linux terminal? Need to write a script
2
votes
2answers
122 views

Improve awk command processing file

Situation I have awk command reads results from mywebsite.log current command awk 'BEGIN{ curr_d=strftime("%d/%b/%Y", systime()) } $3~"^\\["curr_d{ cc[$8]++ } END{ for(i in cc) print i":"cc[i] }' ...