Stack Exchange Network

Stack Exchange network consists of 174 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

Questions tagged [text]

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

1
vote
1answer
31 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
40 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
590 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
47 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
29 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
38 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
56 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
56 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
28 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
28 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
97 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
36 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
50 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
193 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 &...
0
votes
0answers
36 views

syslinux menu/label text

I want to add some "helper" or "group" text to my syslinux menu like in the screenshot. Im talking about the text "Installation" and "Tools" text after the "MENU SEPARATOR". How can i reach this goal?...
2
votes
3answers
255 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
248 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
88 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
193 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
31 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
45 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
36 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
39 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
89 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 ...
0
votes
0answers
24 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
40 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
47 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
24 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
58 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
886 views

What Ctrl+Shift+X does what it does in text fields in the browser(linux)?

I had accidentally pressed Ctrl+Shift+X while typing in the wordpress WSIWYG editor, And all the text kinda scrambled to the right, which isn't exactly the same as right align though. Observation 1: ...
-1
votes
1answer
30 views

Change duplicating lines in file

Need to find all duplicate lines in file. For each case keep first occurrence as is, and append incremented counter to each next occurrence. For example: original file A B C A C A C need A B C ...
1
vote
2answers
83 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
44 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
95 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
110 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] }' ...
2
votes
1answer
3k views

Install Ubuntu 16 with text based and use ubuntu with no GUI

I have tried installing Ubuntu 16 with minimal cd and I'm getting the text based installation, but the thing is I want to install ubuntu only with text-based installation and after that, I want to use ...
0
votes
1answer
76 views

How to make “incremental” replace in files with bash

I need to search files in directory with specific pattern (for example foobar) and replace them with foobarXXX, where XXX is a number. For example, there were two original file snt130.txt My ...
1
vote
2answers
555 views

Delete first 10 characters of every line in textfile

Suppose I have a file, test.java It starts off like this every line /* */ package com.a; /* */ import java.util.List /* */ etc I want to remove the first 10 characters from every line ...
0
votes
2answers
40 views

Converting spaces in a text file to periods/full stops

I'm quite new to Linux so forgive my ignorance. I have a regular text file with plain text. I would like to know if it's possible to convert all the spaces within the file to periods/full stops. ...
3
votes
3answers
456 views

View text file and highlight numbers

I'd like to view a text file on the terminal and highlight its numbers. Something like I get when I open it with gedit. I haven't been able to do this with less, cat, vim or other viewers/editors. P....
-3
votes
3answers
58 views

how to find a text and copy the text after?

I have a script that create a txt file with a lot of information. I want to check if there is a specific text in it, and copy what come after. for example, this is the txt file: blablablaWANTEDTEXT[...
0
votes
1answer
660 views

how to compare text file datas with excel sheet values

For Example : in my username.txt file ravi peri perl phython in my .xls file i have two columns named as user name and email username email ravi ravi@...
1
vote
2answers
2k views

Write shell output to MS Word document

Problem: I usually output text from my shell to file using >. I am trying to find an equivalent process that outputs a MS Word document (.doc or .docx). I was thinking to use libreoffice and ...
2
votes
0answers
32 views

How to convert pdf to an open text format in a fast way? [duplicate]

How to convert pdf to an open text format in a fast way? i got hundreds of pdfs from my old hd and i'd like to clean them and convert to a safe open format, so i've been scatering internet allover and ...
-2
votes
1answer
367 views

Removing lines from text file that contain string at beginning and string at end - and keep one

It took me a while to word this best. Problem 1: Is there a way to find lines in a text file that have the same string at the beginning and the same strings at the end? Beginning and end strings ...