Questions tagged [text]

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

0
votes
1answer
23 views

Simple Binary Replacement

I tried using bbe as below bbe -e 's/01110011/01111000/' test.txt All I'm trying to accomplish in this example is to read the file as if it's a binary file, and replacing the letter s with x. I'm ...
0
votes
1answer
35 views

How to use `tree` to print the directory structure to a text file? [closed]

To print the directory structure to the console I use tree: $ tree -d . ├── figures │   ├── issue_33 │   │   ├── augmented_patches ... But for some reason I cannot do this to a file, as the ...
0
votes
1answer
30 views

“tail” Is Returning the Wrong Requested Number Lines

I'm trying to use the following approach to subset the output of a manual: man dig | nl | tail -n +389 | head -n 6 However, the output starts at line 304, not line 389. Doing some research, it seems ...
1
vote
1answer
64 views

Linux command that continuously outputs string of text

At some point I used a shell command that continuously sent a very short string of text to the standard output, but at this moment I can't recall it's name. Its name was something very short, like '...
2
votes
0answers
56 views

Why on earth is my apostrophe character represented as `’`?

' = ’? I'm running Linux Mint 19.1 with Cinnamon, and I notice that in all instances where the system has to display the apostrophe character, it instead displays this string ’ ...
5
votes
4answers
81 views

how to insert new line if a line has more than 60 characters

I need to turn a text file that has a single line per file name and output separated by a single space into specific blocks that have lines that are equal to 60 characters in length. Like this: >...
-1
votes
1answer
28 views

concatenate netcdf variables using indexes from a text file

I have a bunch of netcdf files containing a variable vel_u of which I only want to extract certain values. I already determined the indexes of these values. They are stored in I.txt and J.txt As you ...
0
votes
3answers
33 views

How to list all directory paths including a text?

I need to list all directory paths including a text which is part of thier sub-directories. For example, the text is "tpcc" and I have two paths including tpcc as following: /home/arghy/sampledir1/**...
0
votes
3answers
49 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> &...
2
votes
0answers
22 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
33 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
75 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
32 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
61 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
34 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
153 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
59 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
50 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
237 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
647 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
55 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
38 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
50 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
432 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
60 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
73 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
31 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
394 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
38 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
277 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
263 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
426 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
96 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
347 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
50 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
38 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
53 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 ...
1
vote
2answers
114 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
31 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
64 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
30 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 ...
1
vote
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 ...