Skip to main content

Questions tagged [text-processing]

Manipulation or examining of text by programs, scripts, etc.

1 vote
2 answers
134 views

I have a folder with many subfolders full of various Quarto(reg) files & in those files there are links that are located in varying positions in the file lines. UPDATE ON 3 November 2025 in ...
iembry's user avatar
  • 205
7 votes
9 answers
712 views

I've got a text file containing e.g. Success Something Anything Success Somebody Anybody Someone Success (line 8 is deliberately an empty line) and I would like to export every line between the nth ...
Chestal's user avatar
  • 73
4 votes
4 answers
461 views

I would like to be able to find all files in multiple directories whose file names start with the same string, but preferably not if that string is only one word or contains fewer than perhaps 5 ...
EmmaV's user avatar
  • 4,443
3 votes
2 answers
186 views

The Issue I've been parsing a file with sed trying to tweeze out the desired data. This has worked fine for most lines in the file but there appears to be some embedded special characters that are ...
Gandalf's user avatar
  • 33
4 votes
4 answers
485 views

How to remove comments and newline symbols without using two pipes. I have bookmarks.txt file with comments. https://cookies.com # recipes cookbook https://magicwands.com # shopping I can copy link ...
normal_max's user avatar
5 votes
5 answers
378 views

I'm working with several files which come in bundle of four, across groups the bundels have the same number of columns; see below for an example showing the first four rows with header: File1 has ...
Matteo's user avatar
  • 323
2 votes
1 answer
113 views

Today I connected to a long-running process in tmux over ssh for work, to find that the pane the process was running in seems to have started using the wrong character encoding for its output, leading ...
Patronics's user avatar
  • 125
3 votes
1 answer
379 views

I noticed a difference in behavior between an older pcre2grep version (10.22) and a more recent one (10.42), and I am wondering how I can get the old behavior back. Take the following file: aaa bbb ...
ChennyStar's user avatar
  • 2,019
2 votes
1 answer
99 views

System Info alinuxchap@libertus-desktop:/usr/share/X11/xkb $ uname -a Linux libertus-desktop 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux alinuxchap@...
Signor Pizza's user avatar
6 votes
7 answers
1k views

In Linux there is a file numbers.txt. It contains a few numbers, all separated with space. There are numbers like this: 5476089856 71788143 9999744134 114731731 3179237376 In this example only the ...
Banana's user avatar
  • 241
3 votes
5 answers
717 views

In a certain script that we run routinely we configure hostnames in environment variables. Since hostnames can change overtime, we try to dynamically pick the current set of hosts using linux's ...
y2k-shubham's user avatar
1 vote
7 answers
341 views

What is the correct way to extract paragraphs in this log file using awk: $ cat log.txt par1, line1 par1, line2 par1, line3 par1, line4 par1, line5 par1, last line par2, line1 ...
canupseq's user avatar
  • 2,004
2 votes
5 answers
147 views

I am trying to format and connect git log messages for later processing. I am using git log --pretty=format:'%H %s' to get commit hash and the complete message at the moment. I need commit messages to ...
xerxes's user avatar
  • 359
2 votes
3 answers
224 views

I would like to build a report coming from the output of certain commands. For instance, I have the output of such command: systemctl --type=service --state=running | grep -e cron -e apache2 -e ...
Nick's user avatar
  • 29
1 vote
3 answers
131 views

I have a PDB file (coordinates of atoms in a protein) on a Linux machine: ATOM 1 N GLY A 1 0.535 51.766 5.682 1.00 0.00 ATOM 2 CA GLY A 1 -0.712 50....
Paolo Lorenzini's user avatar

15 30 50 per page
1
2 3 4 5
569